/* ==========================================================================
   AAPKESITARE – THIRD-PARTY THEME OVERRIDES
   Dark Navy + Purple + Gold for all vendor widgets
   ========================================================================== */

/* ── SweetAlert2 ── */
.swal2-popup {
    background: #1A1245 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(124, 92, 228, 0.3);
}

.swal2-title {
    color: #FFFFFF !important;
}

.swal2-html-container,
.swal2-content {
    color: rgba(255, 255, 255, 0.7) !important;
}

.swal2-confirm {
    background: #F2C94C !important;
    color: #080718 !important;
    font-weight: 600 !important;
    border: none !important;
}

.swal2-confirm:hover {
    background: #D4A935 !important;
}

.swal2-cancel {
    background: transparent !important;
    color: #A78BFA !important;
    border: 1px solid #7C5CE4 !important;
}

.swal2-cancel:hover {
    background: rgba(124, 92, 228, 0.15) !important;
}

.swal2-close {
    color: rgba(255, 255, 255, 0.5) !important;
}

.swal2-close:hover {
    color: #FFFFFF !important;
}

/* ── Toastr Notifications ── */
#toast-container>.toast {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.3);
    box-shadow: 0 4px 14px rgba(124, 92, 228, 0.2) !important;
}

#toast-container>.toast-success {
    border-left: 4px solid #10B981;
}

#toast-container>.toast-error {
    border-left: 4px solid #EF4444;
}

#toast-container>.toast-warning {
    border-left: 4px solid #F2C94C;
}

#toast-container>.toast-info {
    border-left: 4px solid #7C5CE4;
}

.toast-title {
    color: #FFFFFF !important;
}

.toast-message {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ── Select2 Dropdown ── */
.select2-container--default .select2-selection--single {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.4) !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #FFFFFF !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #A78BFA transparent transparent transparent !important;
}

.select2-dropdown {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.4) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #0E0B2A !important;
    border: 1px solid rgba(124, 92, 228, 0.3) !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-results__option {
    color: rgba(255, 255, 255, 0.7) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #7C5CE4 !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(124, 92, 228, 0.2) !important;
    color: #F2C94C !important;
}

/* ── Bootstrap Modal ── */
.modal-content {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.3);
    color: #FFFFFF;
}

.modal-header {
    border-bottom: 1px solid rgba(124, 92, 228, 0.2) !important;
}

.modal-header .close,
.modal-header .btn-close {
    color: rgba(255, 255, 255, 0.5) !important;
    text-shadow: none !important;
}

.modal-footer {
    border-top: 1px solid rgba(124, 92, 228, 0.2) !important;
}

.modal-title {
    color: #FFFFFF !important;
}

/* ── Bootstrap Dropdown ── */
.dropdown-menu {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.3) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(124, 92, 228, 0.15) !important;
    color: #FFFFFF !important;
}

.dropdown-item i,
.dropdown-item .fa,
.dropdown-item .fas,
.dropdown-item .far,
.dropdown-item .fab {
    color: #A78BFA !important;
}

.dropdown-divider {
    border-color: rgba(124, 92, 228, 0.2) !important;
}

/* ── OWL Carousel ── */
.owl-nav button {
    background: rgba(26, 18, 69, 0.9) !important;
    color: #F2C94C !important;
    border: 1px solid rgba(124, 92, 228, 0.3) !important;
}

.owl-nav button:hover {
    background: #7C5CE4 !important;
    color: #FFFFFF !important;
}

.owl-dots .owl-dot span {
    background: rgba(167, 139, 250, 0.3) !important;
}

.owl-dots .owl-dot.active span {
    background: #F2C94C !important;
}

/* ── Bootstrap Forms (Dark) ── */
.form-control {
    background-color: #0E0B2A !important;
    border: 1px solid rgba(124, 92, 228, 0.3) !important;
    color: #FFFFFF !important;
}

.form-control:focus {
    border-color: #7C5CE4 !important;
    box-shadow: 0 0 0 0.2rem rgba(124, 92, 228, 0.25) !important;
    background-color: #0E0B2A !important;
    color: #FFFFFF !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

/* Color for date/time picker icon (invert black to white) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
}

.input-group-text {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.3) !important;
    color: #A78BFA !important;
}


/* ── Bootstrap Cards ── */
.card {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.2) !important;
    color: #FFFFFF;
}

.card-header {
    background-color: rgba(124, 92, 228, 0.1) !important;
    border-bottom: 1px solid rgba(124, 92, 228, 0.2) !important;
    color: #FFFFFF !important;
}

.card-body {
    color: rgba(255, 255, 255, 0.7);
}

.card-footer {
    background-color: rgba(124, 92, 228, 0.05) !important;
    border-top: 1px solid rgba(124, 92, 228, 0.2) !important;
}

/* ── Bootstrap Nav Tabs ── */
.nav-tabs {
    border-bottom-color: rgba(124, 92, 228, 0.3) !important;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid transparent !important;
}

.nav-tabs .nav-link:hover {
    color: #A78BFA !important;
    border-color: transparent transparent rgba(124, 92, 228, 0.3) !important;
}

.nav-tabs .nav-link.active {
    background-color: #1A1245 !important;
    border-color: rgba(124, 92, 228, 0.3) rgba(124, 92, 228, 0.3) #1A1245 !important;
    color: #F2C94C !important;
}

/* ── Bootstrap Table ── */
.table {
    color: rgba(255, 255, 255, 0.7) !important;
}

.table thead th {
    background-color: #0E0B2A !important;
    color: #FFFFFF !important;
    border-bottom-color: rgba(124, 92, 228, 0.3) !important;
}

.table td,
.table th {
    border-top-color: rgba(124, 92, 228, 0.15) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(124, 92, 228, 0.05) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(124, 92, 228, 0.1) !important;
}

/* ── Bootstrap Badges ── */
.badge-primary {
    background-color: #7C5CE4 !important;
}

.badge-secondary {
    background-color: #1A1245 !important;
    border: 1px solid rgba(124, 92, 228, 0.3);
}

.badge-success {
    background-color: #10B981 !important;
}

.badge-danger {
    background-color: #EF4444 !important;
}

.badge-warning {
    background-color: #F2C94C !important;
    color: #080718 !important;
}

.badge-info {
    background-color: #A78BFA !important;
    color: #080718 !important;
}

/* ── Bootstrap Pagination ── */
.page-link {
    background-color: #1A1245 !important;
    border-color: rgba(124, 92, 228, 0.3) !important;
    color: #A78BFA !important;
}

.page-link:hover {
    background-color: rgba(124, 92, 228, 0.2) !important;
    color: #F2C94C !important;
}

.page-item.active .page-link {
    background-color: #7C5CE4 !important;
    border-color: #7C5CE4 !important;
    color: #FFFFFF !important;
}

.page-item.disabled .page-link {
    background-color: #0E0B2A !important;
    color: rgba(255, 255, 255, 0.25) !important;
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0E0B2A;
}

::-webkit-scrollbar-thumb {
    background: #7C5CE4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A78BFA;
}

/* ── General Text Helpers ── */
.text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}

.text-dark {
    color: #FFFFFF !important;
}

.text-secondary {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white {
    background-color: #1A1245 !important;
}

.bg-light {
    background-color: #0E0B2A !important;
}

.border {
    border-color: rgba(124, 92, 228, 0.2) !important;
}

.border-bottom {
    border-bottom-color: rgba(124, 92, 228, 0.2) !important;
}

.border-top {
    border-top-color: rgba(124, 92, 228, 0.2) !important;
}

.shadow,
.shadow-sm,
.shadow-lg {
    box-shadow: 0 4px 14px rgba(124, 92, 228, 0.15) !important;
}

/* ── Misc Overrides ── */
hr {
    border-top-color: rgba(124, 92, 228, 0.2);
}

.list-group-item {
    background-color: #1A1245 !important;
    border-color: rgba(124, 92, 228, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.breadcrumb {
    background-color: #0E0B2A !important;
}

.breadcrumb-item a {
    color: #A78BFA !important;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ── Alert Overrides ── */
.alert-info {
    background-color: rgba(124, 92, 228, 0.15) !important;
    border-color: rgba(124, 92, 228, 0.3) !important;
    color: #A78BFA !important;
}

.alert-warning {
    background-color: rgba(242, 201, 76, 0.1) !important;
    border-color: rgba(242, 201, 76, 0.3) !important;
    color: #F2C94C !important;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #10B981 !important;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #EF4444 !important;
}

/* ── AOS animations ── */
[data-aos] {
    will-change: transform, opacity;
}

/* ── Global Left & Right Margin/Padding Reductions (Tablet and Desktop only) ── */

@media (min-width: 768px) {

    /* Decrease container side padding on tablet & desktop */
    .container,
    .container-fluid {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }

    /* Decrease side padding of major content cards to make them more compact */
    .hero-banner-card {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    /* .service-card,
    .astrologer-card,
    .astrologer-premium-card,
    .hiw-card,
    .testi-card {
        padding-left: 80px !important;
        padding-right: 80px !important;
    } */
}

/* Increase container width on larger screens to decrease empty left/right margins */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1480px !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1620px !important;
    }
}

/* ── Mobile Header & Logo Overlapping & Breaking Fixes ── */
@media (max-width: 767px) {
    .header {
        height: auto !important;
        min-height: 54px !important;
    }

    .navbar-logo-img {
        max-height: 44px !important;
        width: auto !important;
    }

    /* Ensure the top navbar matches the clean height and spacing */
    nav.navbar.navbar-expand-lg.navbar-light.top-navbar {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        min-height: 54px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Reduce top spacing in mobile view */
    .wrapper {
        padding-top: 0 !important;
    }

    .wrapper>.container.mt-5,
    .wrapper>div>.container.mt-5,
    .wrapper>section>.container.mt-5 {
        margin-top: 1.5rem !important;
        /* Reduce from 3rem (mt-5) to 1.5rem (mt-3) */
    }
}