/* ==========================================================================
   THEME TOGGLE CSS
   ========================================================================== */

/* Premium Global Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 122, 0, 0.7);
    border: 2px solid transparent;
    background-clip: padding-box;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
}
body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 122, 0, 0.9);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
}
html.dark-theme {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Toggle Button */
.theme-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    color: var(--text-main, #1e293b);
}

.theme-toggle-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,122,0,0.2);
    border-color: var(--primary-color, #ff7a00);
    color: var(--primary-color, #ff7a00);
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* Light Theme Tokens */
body.light, body.light-theme, html.light, html.light-theme {
    --bg-app:      #eef2f7 !important;
    --bg-sidebar:  #ffffff !important;
    --bg-card:     #ffffff !important;
    --bg-input:    #f8fafc !important;
    --bg-body:     #f8fafc !important;
    --bg-card-glass: rgba(255, 255, 255, 0.94) !important;
    --border-color: #dbe3ed !important;
    --border-hover: rgba(234,88,12,0.4) !important;
    --text-main:  #0a0f1e !important;
    --text-muted: #475569 !important;
    --text-dark:  #0a0f1e !important;
    --glass-bg: rgba(255, 255, 255, 0.88) !important;
    --glass-blur: blur(16px) !important;
    --glass-border: 1px solid #dbe3ed !important;
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

body.light.admin-dashboard-body, body.light-theme.admin-dashboard-body,
body.light.partner-dashboard-body, body.light-theme.partner-dashboard-body {
    background: #eef2f7 !important;
    background-image:
        radial-gradient(circle at top right, rgba(249,115,22,0.07) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(14,165,233,0.05) 0%, transparent 50%) !important;
    color: #0a0f1e !important;
}

/* Dark Theme Overrides for Dashboard */
body.dark-theme:not(.light):not(.light-theme) {
    --bg-app:      #090d16 !important;
    --bg-sidebar:  #0e1524 !important;
    --bg-card:     #111827 !important;
    --bg-input:    #1e293b !important;
    --bg-body:     #090d16 !important;
    --bg-card-glass: rgba(17, 24, 39, 0.85) !important;
    --border-color: rgba(255,255,255,0.08) !important;
    --border-hover: rgba(249,115,22,0.35) !important;
    --text-main:  #f8fafc !important;
    --text-muted: #94a3b8 !important;
    --text-dark:  #f8fafc !important;
    --glass-bg: rgba(17, 24, 39, 0.82) !important;
    --glass-blur: blur(16px) !important;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08) !important;
    --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Mobile Topbar & Elements in Light Theme */
body.light .mobile-topbar,
body.light-theme .mobile-topbar,
html.light .mobile-topbar,
html.light-theme .mobile-topbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #dbe3ed !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.light .mobile-menu-trigger,
body.light-theme .mobile-menu-trigger,
html.light .mobile-menu-trigger,
html.light-theme .mobile-menu-trigger {
    background: #ffffff !important;
    border: 1px solid #dbe3ed !important;
    color: #0a0f1e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.light .admin-theme-toggle-btn,
body.light-theme .admin-theme-toggle-btn,
html.light .admin-theme-toggle-btn,
html.light-theme .admin-theme-toggle-btn {
    background: #ffffff !important;
    border: 1px solid #dbe3ed !important;
    color: #0a0f1e !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

#mobile-theme-toggle {
    position: static !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

body.light .theme-icon-moon,
body.light-theme .theme-icon-moon,
html.light .theme-icon-moon,
html.light-theme .theme-icon-moon {
    display: none !important;
}

body.light .theme-icon-sun,
body.light-theme .theme-icon-sun,
html.light .theme-icon-sun,
html.light-theme .theme-icon-sun {
    display: block !important;
    color: #f59e0b !important;
}

@media (max-width: 900px) {
    .mobile-topbar {
        padding-left: 64px !important;
    }
}

body.dark-theme:not(.light):not(.light-theme).admin-dashboard-body, 
body.dark-theme:not(.light):not(.light-theme).partner-dashboard-body {
    background: #090d16 !important;
    background-image:
        radial-gradient(circle at top right, rgba(249,115,22,0.14) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(14,165,233,0.06) 0%, transparent 50%) !important;
}

/* Esconder slideshows se eles existem apenas em dashboards */
body.dark-theme:not(.fullscreen-auth) .slideshow-container {
    display: none !important;
}

/* Dark Theme for Auth — mantém slideshow visível com overlay vinheta */
body.dark-theme.fullscreen-auth:not(.auth-light-theme) {
    background: transparent !important;
}

body.dark-theme:not(.auth-light-theme) .auth-slideshow {
    display: block !important;
    opacity: 1 !important;
}

body.dark-theme:not(.auth-light-theme) .auth-overlay {
    display: block !important;
}
body.dark-theme:not(.auth-light-theme) .auth-box h2, 
body.dark-theme:not(.auth-light-theme) .auth-box .auth-subtitle, 
body.dark-theme:not(.auth-light-theme) .auth-box label {
    color: #ffffff !important;
}
body.dark-theme:not(.auth-light-theme) .auth-box .input-box input {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
body.dark-theme:not(.auth-light-theme) .auth-box .input-box i {
    color: rgba(255,255,255,0.6) !important;
}
body.dark-theme:not(.auth-light-theme) .auth-box .input-box input:focus {
    border-color: var(--primary-color) !important;
}

/* Auth left side text */
body.dark-theme:not(.auth-light-theme) .auth-left h1, 
body.dark-theme:not(.auth-light-theme) .auth-feature-item, 
body.dark-theme:not(.auth-light-theme) .auth-left p {
    color: #ffffff !important;
}
body.dark-theme:not(.auth-light-theme) .auth-feature-icon,
body.dark-theme:not(.auth-light-theme) .auth-support-icon {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}
body.dark-theme:not(.auth-light-theme) .auth-feature-icon i,
body.dark-theme:not(.auth-light-theme) .auth-feature-icon svg,
body.dark-theme:not(.auth-light-theme) .auth-feature-icon [data-lucide],
body.dark-theme:not(.auth-light-theme) .auth-support-icon i,
body.dark-theme:not(.auth-light-theme) .auth-support-icon svg,
body.dark-theme:not(.auth-light-theme) .auth-support-icon [data-lucide] {
    color: var(--primary-color, #ff7a00) !important;
    stroke: var(--primary-color, #ff7a00) !important;
}
body.dark-theme .auth-left-tag {
    background: rgba(255,122,0,0.15) !important;
    border-color: rgba(255,122,0,0.3) !important;
    color: var(--primary-color) !important;
}

/* Global inputs dark mode fixes for forms inside panels */
body.dark-theme input, body.dark-theme select, body.dark-theme textarea {
    background-color: var(--bg-input) !important;
    color: #ffffff !important;
    border-color: var(--border-color) !important;
}
body.dark-theme input:focus, body.dark-theme select:focus, body.dark-theme textarea:focus {
    border-color: var(--primary-color) !important;
}

/* Headers and strong text inside panels */
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme strong, body.dark-theme th {
    color: #ffffff !important;
}
body.dark-theme td, body.dark-theme p, body.dark-theme span:not(.admin-badge) {
    color: var(--text-muted) !important;
}

/* Tabela headers e linhas */
body.dark-theme table {
    border-color: var(--border-color) !important;
}
body.dark-theme th {
    background-color: #0a0a0a !important;
    border-bottom: 1px solid var(--border-color) !important;
}
body.dark-theme td {
    border-bottom: 1px solid var(--border-color) !important;
}
body.dark-theme tr:hover td {
    background-color: rgba(255,255,255,0.02) !important;
}

/* Menu items */
body.dark-theme .sidebar-nav a, body.dark-theme .admin-sidebar a, body.dark-theme .partner-sidebar a {
    color: var(--text-muted) !important;
}
body.dark-theme .sidebar-nav a:hover, body.dark-theme .admin-sidebar a:hover, body.dark-theme .partner-sidebar a:hover {
    background: rgba(255,255,255,0.05) !important;
    color: #ffffff !important;
}
body.dark-theme .sidebar-nav a.active, body.dark-theme .admin-sidebar a.active, body.dark-theme .partner-sidebar a.active {
    background: rgba(255,122,0,0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Dark theme panel and sidebar styling */
body.dark-theme:not(.light):not(.light-theme) .partner-sidebar,
body.dark-theme:not(.light):not(.light-theme) .admin-sidebar,
body.dark-theme:not(.light):not(.light-theme) .glass-panel,
body.dark-theme:not(.light):not(.light-theme) .stat-card,
body.dark-theme:not(.light):not(.light-theme) .panel-card,
body.dark-theme:not(.light):not(.light-theme) .ios-settings-group,
body.dark-theme:not(.light):not(.light-theme) .partner-modal,
body.dark-theme:not(.light):not(.light-theme) .modal-content,
body.dark-theme:not(.light):not(.light-theme) .partner-card-profile {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme:not(.light):not(.light-theme) .partner-sidebar h2,
body.dark-theme:not(.light):not(.light-theme) .partner-sidebar h3,
body.dark-theme:not(.light):not(.light-theme) .partner-sidebar p,
body.dark-theme:not(.light):not(.light-theme) .partner-sidebar span {
    color: #f8fafc !important;
}

/* Light theme panel and sidebar styling */
body.light .partner-sidebar, body.light-theme .partner-sidebar,
body.light .admin-sidebar, body.light-theme .admin-sidebar,
body.light .glass-panel, body.light-theme .glass-panel,
body.light .stat-card, body.light-theme .stat-card,
body.light .panel-card, body.light-theme .panel-card,
body.light .ios-settings-group, body.light-theme .ios-settings-group,
body.light .partner-modal, body.light-theme .partner-modal,
body.light .modal-content, body.light-theme .modal-content,
body.light .partner-card-profile, body.light-theme .partner-card-profile {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light .partner-sidebar h2, body.light .partner-sidebar h3,
body.light .partner-sidebar p, body.light .partner-sidebar span,
body.light-theme .partner-sidebar h2, body.light-theme .partner-sidebar h3,
body.light-theme .partner-sidebar p, body.light-theme .partner-sidebar span {
    color: #0a0f1e !important;
}

body.light .admin-sidebar, body.light-theme .admin-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #dbe3ed !important;
}

body.light .admin-sidebar .sidebar-menu-btn,
body.light-theme .admin-sidebar .sidebar-menu-btn {
    color: #475569 !important;
}
body.light .admin-sidebar .sidebar-menu-btn:hover,
body.light-theme .admin-sidebar .sidebar-menu-btn:hover {
    background: #f1f5f9 !important;
    color: #0a0f1e !important;
}
body.light .admin-sidebar .sidebar-menu-btn.active,
body.light-theme .admin-sidebar .sidebar-menu-btn.active {
    background: rgba(234, 88, 12, 0.1) !important;
    color: var(--primary-color) !important;
    border-left: 3px solid var(--primary-color) !important;
}

/* Exceções de badges */
body.dark-theme:not(.light):not(.light-theme) .admin-badge, 
body.dark-theme:not(.light):not(.light-theme) .status-badge {
    color: #ffffff !important;
}

/* Floating Top-Right Profile Header dark override */
body.dark-theme:not(.light):not(.light-theme) .fixed-profile-header {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
body.dark-theme:not(.light):not(.light-theme) .fixed-profile-header:hover {
    background: #1a2234 !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.2) !important;
}
body.dark-theme:not(.light):not(.light-theme) .fixed-profile-header h4 {
    color: #ffffff !important;
}
body.dark-theme:not(.light):not(.light-theme) .fixed-profile-header .admin-badge {
    color: var(--primary-color) !important;
    background: var(--admin-accent-soft) !important;
    border: 1px solid var(--admin-accent-border) !important;
}

/* Floating Top-Right Profile Header light override */
body.light .fixed-profile-header, body.light-theme .fixed-profile-header {
    background: #ffffff !important;
    border: 1px solid #dbe3ed !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    color: #0a0f1e !important;
}
body.light .fixed-profile-header:hover, body.light-theme .fixed-profile-header:hover {
    background: #ffffff !important;
    border-color: rgba(234, 88, 12, 0.4) !important;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.15) !important;
}
body.light .fixed-profile-header h4, body.light-theme .fixed-profile-header h4 {
    color: #0a0f1e !important;
}
body.light .fixed-profile-header .admin-badge, body.light-theme .fixed-profile-header .admin-badge {
    color: var(--primary-color) !important;
    background: rgba(234, 88, 12, 0.1) !important;
    border: 1px solid rgba(234, 88, 12, 0.28) !important;
}

/* Sidebar Theme Toggle Switch (/user style) */
.sidebar-theme-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    margin-bottom: 0.5rem !important;
}
body.light .sidebar-theme-row, body.light-theme .sidebar-theme-row {
    background: #f1f5f9 !important;
    border-color: #dbe3ed !important;
}
.sidebar-theme-row:hover {
    border-color: var(--primary-color) !important;
    background: rgba(249, 115, 22, 0.06) !important;
}
.theme-label-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-main, #f8fafc) !important;
}
body.light .theme-label-group, body.light-theme .theme-label-group {
    color: #0a0f1e !important;
}
.toggle-pill {
    width: 36px !important;
    height: 20px !important;
    border-radius: 9999px !important;
    background: var(--primary-color, #f97316) !important;
    padding: 2px !important;
    position: relative !important;
    transition: all 0.22s ease !important;
    box-sizing: border-box !important;
}
.toggle-pill.light, body.light .toggle-pill, body.light-theme .toggle-pill {
    background: #cbd5e1 !important;
}
.toggle-circle {
    width: 16px !important;
    height: 16px !important;
    border-radius: 9999px !important;
    background: #ffffff !important;
    transform: translateX(16px) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
.toggle-pill.light .toggle-circle, body.light .toggle-circle, body.light-theme .toggle-circle {
    transform: translateX(0) !important;
}

/* Dashboard Charts Grid Layout */
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}


/* Sidebar Category Group Headers */
.sidebar-category-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    opacity: 0.6;
}

/* Sidebar Dropdown Menu Container */
.sidebar-dropdown {
    display: flex;
    flex-direction: column;
}

/* Chevron indicator for collapsible dropdowns */
.dropdown-chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.sidebar-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown Content (Hidden by default) */
.sidebar-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 1.75rem;
    margin-top: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: 1.25rem;
}

/* When dropdown is open, show the content */
.sidebar-dropdown.open .sidebar-dropdown-content {
    display: flex;
}

/* Dropdown Sub-item Links */
.sidebar-dropdown-subbtn {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 0.8rem !important;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.sidebar-dropdown-subbtn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.sidebar-dropdown-subbtn.active {
    background: var(--admin-accent-soft);
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Light Theme support for dropdown sub-buttons */
body:not(.dark-theme) .sidebar-dropdown-subbtn {
    color: #4b5563;
}
body:not(.dark-theme) .sidebar-dropdown-subbtn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #111827;
}
body:not(.dark-theme) .sidebar-dropdown-subbtn.active {
    background: rgba(255, 122, 0, 0.08);
    color: var(--primary-color) !important;
}
body:not(.dark-theme) .sidebar-dropdown-content {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   PREMIUM SIDEBAR AND MENU STYLING (ADMIN & PARTNER)
   ========================================================================== */


/* Category headers design */
.sidebar-category-header {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--primary-color) !important;
    opacity: 0.85 !important;
    margin-top: 1.75rem !important;
    margin-bottom: 0.6rem !important;
    padding-left: 0.75rem !important;
    position: relative !important;
}

.sidebar-category-header::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0.75rem !important;
    width: 20px !important;
    height: 2px !important;
    background: var(--primary-color) !important;
    border-radius: 2px !important;
}

/* Dropdown toggles */
.sidebar-dropdown-content {
    gap: 6px !important;
    border-left: 1px dashed rgba(255, 122, 0, 0.2) !important;
    padding-left: 1.25rem !important;
    margin-left: 1.5rem !important;
    margin-top: 6px !important;
}

.sidebar-dropdown-subbtn {
    border-left: 2px solid transparent !important;
    transition: all 0.25s ease !important;
    font-size: 0.84rem !important;
    padding: 0.5rem 0.75rem !important;
}

.sidebar-dropdown-subbtn:hover {
    background: rgba(255, 122, 0, 0.03) !important;
    color: #ffffff !important;
    padding-left: 1rem !important;
}

.sidebar-dropdown-subbtn.active {
    border-left: 2px solid var(--primary-color) !important;
    background: rgba(255, 122, 0, 0.08) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* Custom Scrollbar for sidebar navigation menu */
.sidebar-menu-links {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
}

.sidebar-menu-links::-webkit-scrollbar {
    width: 4px !important;
}

.sidebar-menu-links::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar-menu-links::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 0, 0.2) !important;
    border-radius: 4px !important;
}

.sidebar-menu-links::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color) !important;
}

/* Profile Card Styling in Sidebar */
.admin-card-profile, .partner-card-profile {
    border: 1px solid rgba(255, 122, 0, 0.15) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

.admin-card-profile:hover, .partner-card-profile:hover {
    border-color: rgba(255, 122, 0, 0.4) !important;
    box-shadow: 0 4px 25px rgba(255, 122, 0, 0.1) !important;
}

/* Light Theme overrides for the buttons and profile */
body:not(.dark-theme) .sidebar-menu-btn:hover {
    background: rgba(255, 122, 0, 0.05) !important;
    color: var(--primary-color) !important;
}

body:not(.dark-theme) .sidebar-dropdown-subbtn:hover {
    background: rgba(255, 122, 0, 0.03) !important;
    color: var(--primary-color) !important;
}

body:not(.dark-theme) .sidebar-dropdown-content {
    border-left: 1px dashed rgba(255, 122, 0, 0.15) !important;
}

body:not(.dark-theme) .admin-card-profile, 
body:not(.dark-theme) .partner-card-profile {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

/* RESPONSIVE MEDIUM SCREEN OPTIMIZATIONS (Laptop to Tablet transition) */
@media (min-width: 769px) and (max-width: 1200px) {
    .admin-sidebar, .partner-sidebar {
        width: 220px !important;
        padding: 1rem 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    .sidebar-logo img {
        height: 42px !important;
    }
    
    .admin-card-profile, .partner-card-profile {
        padding: 0.5rem 0.5rem !important;
        gap: 8px !important;
    }
    
    .admin-avatar-circle, .partner-avatar-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    
    .admin-meta-info h4, .partner-meta-info h4 {
        font-size: 0.78rem !important;
        max-width: 100px !important;
    }
    
    .sidebar-menu-btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.82rem !important;
        gap: 8px !important;
    }
    
    .sidebar-menu-btn svg, .sidebar-menu-btn i {
        width: 18px !important;
        height: 18px !important;
    }
    
    .sidebar-category-header {
        font-size: 0.63rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.12rem !important;
    }
}

/* Remove hover styling for the sidebar logo */
a.sidebar-logo:hover, 
body.dark-theme .sidebar-nav a.sidebar-logo:hover, 
body.dark-theme .admin-sidebar a.sidebar-logo:hover, 
body.dark-theme .partner-sidebar a.sidebar-logo:hover {
    background: transparent !important;
    opacity: 1 !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================================================
   SUBPAGE LIGHT THEME REFINEMENTS (Passageiros, Parceiros, Auditoria, Parâmetros)
   ========================================================================== */
body.light .area-summary-box, body.light-theme .area-summary-box {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light .area-item label, body.light-theme .area-item label {
    color: #64748b !important;
}
body.light .area-item .val, body.light-theme .area-item .val {
    color: #0a0f1e !important;
}
body.light .metric-card, body.light-theme .metric-card {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light .metric-info h3, body.light-theme .metric-info h3 {
    color: #64748b !important;
}
body.light .metric-info p, body.light-theme .metric-info p {
    color: #0a0f1e !important;
}
body.light .stat-card-aud, body.light-theme .stat-card-aud {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light .stat-label-aud, body.light-theme .stat-label-aud {
    color: #64748b !important;
}
body.light .stat-val-aud, body.light-theme .stat-val-aud {
    color: #0a0f1e !important;
}
body.light .table-card, body.light-theme .table-card {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light .filter-toolbar, body.light-theme .filter-toolbar {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light .settings-card, body.light-theme .settings-card {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light .admin-table thead, body.light-theme .admin-table thead,
body.light .data-table th, body.light-theme .data-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #dbe3ed !important;
}
body.light .admin-table tbody tr:hover, body.light-theme .admin-table tbody tr:hover,
body.light .data-table tbody tr:hover, body.light-theme .data-table tbody tr:hover {
    background: #f1f5f9 !important;
}
body.light .admin-table td, body.light-theme .admin-table td,
body.light .data-table td, body.light-theme .data-table td {
    color: #0a0f1e !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.light .form-control, body.light-theme .form-control,
body.light .search-input, body.light-theme .search-input,
body.light .filter-select, body.light-theme .filter-select {
    background: #f8fafc !important;
    border-color: #dbe3ed !important;
    color: #0a0f1e !important;
}
body.light .modal-box, body.light-theme .modal-box {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    color: #0a0f1e !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}
body.light .readonly-field div, body.light-theme .readonly-field div {
    background: #f8fafc !important;
    border-color: #dbe3ed !important;
    color: #0a0f1e !important;
}
body.light .page-heading-text h1, body.light-theme .page-heading-text h1 {
    color: #0a0f1e !important;
}
body.light .btn-clear, body.light-theme .btn-clear {
    border-color: #dbe3ed !important;
    color: #475569 !important;
    background: #f8fafc !important;
}
body.light .btn-clear:hover, body.light-theme .btn-clear:hover {
    color: #0a0f1e !important;
    border-color: #cbd5e1 !important;
}
body.light .page-btn, body.light-theme .page-btn {
    background: #ffffff !important;
    border-color: #dbe3ed !important;
    color: #475569 !important;
}
body.light .page-btn:hover, body.light .page-btn.active,
body.light-theme .page-btn:hover, body.light-theme .page-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}
body.light .tab-btn, body.light-theme .tab-btn {
    color: #64748b !important;
}
body.light .tab-btn:hover:not(.active), body.light-theme .tab-btn:hover:not(.active) {
    color: #0a0f1e !important;
}
body.light .tab-btn.active, body.light-theme .tab-btn.active {
    color: #ea580c !important;
    border-bottom-color: #ea580c !important;
}
body.light .btn-action-icon, body.light-theme .btn-action-icon {
    background: #f1f5f9 !important;
    border-color: #dbe3ed !important;
    color: #475569 !important;
}
body.light .btn-action-icon:hover, body.light-theme .btn-action-icon:hover {
    background: #e2e8f0 !important;
    color: #0a0f1e !important;
}
body.light .admin-topbar, body.light-theme .admin-topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #dbe3ed !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04) !important;
}
