/* ============================================
   GohaWhatsapp — Premium Dashboard Theme
   Dark Glassmorphism + Emerald Accent
   ============================================ */

/* ===== Root Color Overrides ===== */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --bs-primary: #00d4aa !important;
    --bs-primary-rgb: 0, 212, 170 !important;
    --bs-primary-bg-subtle: rgba(0, 212, 170, 0.12) !important;
    --bs-primary-border-subtle: rgba(0, 212, 170, 0.3) !important;
    --bs-primary-text-emphasis: #00d4aa !important;
    --bs-link-color: #00d4aa !important;
    --bs-link-hover-color: #00b694 !important;
}

/* ===== Typography ===== */
body,
.layout-wrapper {
    font-family: 'Inter', 'Public Sans', -apple-system, sans-serif !important;
}

/* ===== Sidebar / Aside ===== */
.layout-menu,
.menu-vertical {
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.menu-vertical .menu-inner>.menu-item.active>.menu-link,
.menu-vertical .menu-inner>.menu-item.active:not(.open)>.menu-link,
.menu-vertical .menu-sub>.menu-item.active>.menu-link {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%) !important;
    color: #00d4aa !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.menu-vertical .menu-inner>.menu-item.active>.menu-link i,
.menu-vertical .menu-inner>.menu-item.active:not(.open)>.menu-link i,
.menu-vertical .menu-sub>.menu-item.active>.menu-link i,
.menu-vertical .menu-inner>.menu-item.active>.menu-link .menu-icon,
.menu-vertical .menu-inner>.menu-item.active:not(.open)>.menu-link .menu-icon {
    color: #00d4aa !important;
}

.menu-vertical .menu-inner .menu-item .menu-link:hover {
    background: rgba(0, 212, 170, 0.06) !important;
    border-radius: 10px !important;
    color: #00d4aa !important;
}

.menu-vertical .menu-inner .menu-item .menu-link:hover i,
.menu-vertical .menu-inner .menu-item .menu-link:hover .menu-icon {
    color: #00d4aa !important;
}

/* Sidebar logo styles */
.goha-sidebar-logo {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.goha-sidebar-logo .goha-logo-g {
    background: linear-gradient(135deg, #00d4aa, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.goha-sidebar-logo .goha-logo-w {
    -webkit-text-fill-color: var(--bs-body-color) !important;
}

/* ===== Cards ===== */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px) !important;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Swiper Analytics Card — make it premium */
.swiper-card-advance-bg {
    background: linear-gradient(135deg, #0a1628 0%, #132042 50%, #0d1a32 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 212, 170, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* ===== Buttons — Gradient Primary ===== */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background: linear-gradient(135deg, #00d4aa 0%, #3b82f6 50%, #7c3aed 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):active {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #00d4aa 0%, #3b82f6 50%, #7c3aed 100%) !important;
    border: none !important;
}

.btn-label-primary,
.btn-outline-primary {
    color: #00d4aa !important;
    border-color: rgba(0, 212, 170, 0.4) !important;
    background: rgba(0, 212, 170, 0.08) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-label-primary:hover,
.btn-outline-primary:hover {
    background: rgba(0, 212, 170, 0.18) !important;
    color: #00d4aa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.15) !important;
}

/* ===== Badges & Labels ===== */
.bg-primary,
.badge.bg-primary {
    background: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%) !important;
    color: #fff !important;
}

.bg-label-primary,
.badge.bg-label-primary {
    background: rgba(0, 212, 170, 0.12) !important;
    color: #00d4aa !important;
}

.text-primary,
a.text-primary {
    color: #00d4aa !important;
}

/* ===== Progress Bars ===== */
.progress {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.progress-bar.bg-primary,
.progress-bar {
    background: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%) !important;
    border-radius: 10px !important;
}

/* ===== Navbar/Header ===== */
.layout-navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}

.layout-navbar .navbar-nav .nav-link:hover {
    color: #00d4aa !important;
}

/* ===== Avatar ===== */
.avatar-initial.bg-label-primary,
.avatar .bg-label-primary {
    background: rgba(0, 212, 170, 0.12) !important;
    color: #00d4aa !important;
}

/* ===== Tables ===== */
.table> :not(caption)>*>* {
    border-bottom-color: rgba(0, 0, 0, 0.04) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 212, 170, 0.04) !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 170, 0.45);
}

/* ===== Form Controls ===== */
.form-control:focus,
.form-select:focus {
    border-color: #00d4aa !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.15) !important;
}

/* ===== Dropdowns ===== */
.dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    animation: dropdownFadeIn 0.2s ease !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 212, 170, 0.08) !important;
    color: #00d4aa !important;
}

/* ===== Pagination ===== */
.page-item.active .page-link {
    background: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(0, 212, 170, 0.25) !important;
}

/* ===== Switch / Checkbox ===== */
.form-check-input:checked {
    background-color: #00d4aa !important;
    border-color: #00d4aa !important;
}

.form-switch .form-check-input:checked {
    background-color: #00d4aa !important;
}

/* ===== Alerts ===== */
.alert-primary {
    background: rgba(0, 212, 170, 0.1) !important;
    border-color: rgba(0, 212, 170, 0.2) !important;
    color: #00b694 !important;
}

/* ===== Footer ===== */
.content-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* ===== Nav Tabs/Pills ===== */
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25) !important;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #00d4aa !important;
    color: #00d4aa !important;
}

/* ===== Stats / Analytics text ===== */
.website-analytics-text-bg {
    background: linear-gradient(135deg, #00d4aa, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

/* ===== ApexCharts Override ===== */
.apexcharts-radialbar .apexcharts-track path {
    stroke: rgba(0, 212, 170, 0.1) !important;
}

/* ===== Dark Mode ===== */
[data-bs-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .layout-menu,
[data-bs-theme="dark"] .menu-vertical {
    border-right-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .table> :not(caption)>*>* {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .layout-navbar {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .content-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .goha-sidebar-logo .goha-logo-w {
    -webkit-text-fill-color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* ===== Selection Color ===== */
::selection {
    background: #00d4aa !important;
    color: #fff !important;
}