/**
 * =====================================================
 * ANGOSCHOOL REPORT — TEMA OVERRIDES + COMPONENTES UNICOS
 * =====================================================
 *
 * Este ficheiro contem APENAS:
 *   1. Overrides de variaveis CSS (Indigo em vez de Teal)
 *   2. Overrides de dark mode com cores Indigo
 *   3. Componentes unicos do Report que NAO existem
 *      em theme.css nem components.css do AngoSchool principal
 *
 * Carregado DEPOIS de:
 *   - base.css, theme.css, components.css, searchable_select.css, glass_select.css
 *
 * NAO duplicar aqui nada que ja exista nesses ficheiros.
 */


/* =====================================================
   1. OVERRIDES DE VARIAVEIS :root (Indigo)
   ===================================================== */

:root {
    /* Paleta primaria — Indigo em vez de Teal */
    --sige-primary: #4338ca;
    --sige-primary-hover: #3730a3;
    --sige-primary-active: #312e81;
    --sige-primary-light: #6366f1;
    --sige-primary-bg: rgba(67, 56, 202, 0.1);

    /* CORES SEMANTICAS DE ESTADO — Report usa os mesmos valores que theme.css,
       mas redefine para garantir consistencia */
    --sige-success: #059669;
    --sige-success-light: #d1fae5;
    --sige-success-dark: #065f46;
    --sige-warning: #f59e0b;
    --sige-warning-light: #fef3c7;
    --sige-warning-dark: #92400e;
    --sige-danger: #ef4444;
    --sige-danger-light: #fee2e2;
    --sige-danger-dark: #991b1b;
    --sige-info: #06b6d4;
    --sige-info-light: #cffafe;
    --sige-info-dark: #155e75;
    --sige-purple: #8b5cf6;
    --sige-purple-light: #ede9fe;
    --sige-purple-dark: #5b21b6;
    --sige-amber: #f59e0b;
    --sige-amber-light: #fef3c7;
    --sige-amber-dark: #92400e;
    --sige-blue: #3b82f6;
    --sige-blue-light: #dbeafe;
    --sige-blue-dark: #1e40af;
    --sige-gray: #6b7280;
    --sige-gray-light: #f3f4f6;
    --sige-gray-dark: #374151;

    /* STATUS — estados de processos/documentos */
    --status-pendente-bg: var(--sige-warning-light);
    --status-pendente-text: var(--sige-warning-dark);
    --status-tramitacao-bg: var(--sige-blue-light);
    --status-tramitacao-text: var(--sige-blue-dark);
    --status-despachado-bg: var(--sige-success-light);
    --status-despachado-text: var(--sige-success-dark);
    --status-indeferido-bg: var(--sige-danger-light);
    --status-indeferido-text: var(--sige-danger-dark);
    --status-levantado-bg: var(--sige-purple-light);
    --status-levantado-text: var(--sige-purple-dark);
    --status-arquivado-bg: var(--sige-gray-light);
    --status-arquivado-text: var(--sige-gray-dark);

    /* Layout — Header (Indigo gradient) */
    --layout-header-bg: linear-gradient(135deg, #4338ca 0%, #3730a3 50%, #312e81 100%);
    --layout-header-bg-solid: #4338ca;
    --layout-header-text: #ffffff;
    --layout-header-icon: #ffffff;

    /* Layout — Sidebar (Indigo deep gradient) */
    --layout-sidebar-bg: linear-gradient(180deg, #312e81 0%, #1e1b4b 50%, #0f0e2a 100%);
    --layout-sidebar-bg-solid: #312e81;
    --layout-sidebar-text: #ddd6fe;
    --layout-sidebar-icon: #a78bfa;
    --layout-sidebar-hover: rgba(167, 139, 250, 0.12);
    --layout-sidebar-active: rgba(167, 139, 250, 0.22);

    /* Layout — Content */
    --layout-content-icon: #4338ca;

    /* Layout — Page Background (Indigo tints) */
    --layout-page-bg: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%);
    --layout-page-bg-solid: #f5f3ff;

    /* UI Components — Card/Input overrides with Indigo */
    --ui-card-border: #e8e5f5;
    --ui-card-shadow: rgba(67, 56, 202, 0.08);
    --ui-input-focus: #4338ca;

    /* Input System — Indigo tokens */
    --input-border: var(--glass-border-teal);
    --input-border-focus: var(--sige-primary);
    --input-border-selected: rgba(67, 56, 202, 0.13);
    --input-ring: rgba(67, 56, 202, 0.15);
    --input-icon-focus: var(--sige-primary);

    /* Liquid Glass — Indigo tinted (replaces Teal rgba(41,112,125,...)) */
    --glass-bg-teal: rgba(67, 56, 202, 0.05);
    --glass-bg-teal-medium: rgba(67, 56, 202, 0.09);
    --glass-bg-teal-strong: rgba(67, 56, 202, 0.14);

    --glass-border: rgba(67, 56, 202, 0.08);
    --glass-border-teal: rgba(67, 56, 202, 0.13);
    --glass-border-strong: rgba(67, 56, 202, 0.18);

    --glass-shadow: 0 8px 32px rgba(67, 56, 202, 0.10), 0 2px 8px rgba(67, 56, 202, 0.06);
    --glass-shadow-sm: 0 4px 16px rgba(67, 56, 202, 0.07), 0 1px 4px rgba(67, 56, 202, 0.04);
    --glass-shadow-lg: 0 16px 48px rgba(67, 56, 202, 0.14), 0 4px 16px rgba(67, 56, 202, 0.08);
    --glass-shadow-hover: 0 16px 40px rgba(67, 56, 202, 0.16), 0 4px 12px rgba(67, 56, 202, 0.08);
    --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(67, 56, 202, 0.04);

    /* True glass — Indigo sidebar/header */
    --glass-true-bg-sidebar: rgba(49, 46, 129, 0.88);
    --glass-true-bg-header: rgba(67, 56, 202, 0.90);

    /* Shadow brand — Indigo */
    --shadow-brand: rgba(67, 56, 202, 0.45);
    --shadow-brand-light: rgba(67, 56, 202, 0.1);
    --shadow-brand-medium: rgba(67, 56, 202, 0.3);

    /* Glass stat — Indigo-specific */
    --glass-stat-blue: linear-gradient(135deg, rgba(67,56,202,0.90), rgba(55,48,163,0.94));
    --glass-stat-indigo: linear-gradient(135deg, rgba(99,102,241,0.90), rgba(79,70,229,0.94));
}


/* =====================================================
   2. OVERRIDES DE VARIAVEIS DARK MODE (Indigo)
   ===================================================== */

[data-theme="dark"] {
    /* Paleta primaria Dark — Indigo light */
    --sige-primary: #818cf8;
    --sige-primary-hover: #6366f1;
    --sige-primary-active: #4f46e5;
    --sige-primary-light: #a5b4fc;
    --sige-primary-bg: rgba(167, 139, 250, 0.15);

    --sige-secondary: #5eb896;
    --sige-secondary-hover: #3d9e78;
    --sige-secondary-active: #2d8a65;

    /* CORES SEMANTICAS DE ESTADO — Dark Mode */
    --sige-success: #10b981;
    --sige-success-light: rgba(16, 185, 129, 0.15);
    --sige-success-dark: #6ee7b7;
    --sige-warning: #fbbf24;
    --sige-warning-light: rgba(251, 191, 36, 0.15);
    --sige-warning-dark: #fde68a;
    --sige-danger: #f87171;
    --sige-danger-light: rgba(248, 113, 113, 0.15);
    --sige-danger-dark: #fca5a5;
    --sige-info: #22d3ee;
    --sige-info-light: rgba(34, 211, 238, 0.15);
    --sige-info-dark: #a5f3fc;
    --sige-purple: #a78bfa;
    --sige-purple-light: rgba(167, 139, 250, 0.15);
    --sige-purple-dark: #c4b5fd;
    --sige-amber: #fbbf24;
    --sige-amber-light: rgba(251, 191, 36, 0.15);
    --sige-amber-dark: #fde68a;
    --sige-blue: #60a5fa;
    --sige-blue-light: rgba(96, 165, 250, 0.15);
    --sige-blue-dark: #93c5fd;
    --sige-gray: #9ca3af;
    --sige-gray-light: rgba(156, 163, 175, 0.1);
    --sige-gray-dark: #d1d5db;

    --status-pendente-bg: var(--sige-warning-light);
    --status-pendente-text: var(--sige-warning-dark);
    --status-tramitacao-bg: var(--sige-blue-light);
    --status-tramitacao-text: var(--sige-blue-dark);
    --status-despachado-bg: var(--sige-success-light);
    --status-despachado-text: var(--sige-success-dark);
    --status-indeferido-bg: var(--sige-danger-light);
    --status-indeferido-text: var(--sige-danger-dark);
    --status-levantado-bg: var(--sige-purple-light);
    --status-levantado-text: var(--sige-purple-dark);
    --status-arquivado-bg: var(--sige-gray-light);
    --status-arquivado-text: var(--sige-gray-dark);

    /* Layout Dark — Indigo */
    --layout-header-bg: linear-gradient(135deg, #312e81 0%, #1e1b4b 50%, #0f0e2a 100%);
    --layout-header-bg-solid: #312e81;

    --layout-sidebar-bg: linear-gradient(180deg, #1e1b4b 0%, #0f0e2a 100%);
    --layout-sidebar-bg-solid: #1e1b4b;
    --layout-sidebar-icon: #a78bfa;

    --layout-content-icon: #818cf8;

    --layout-page-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --layout-page-bg-solid: #0f172a;

    /* UI Components Dark */
    --ui-input-focus: #818cf8;

    /* Input System — Dark Indigo */
    --input-border-focus: #818cf8;
    --input-border-selected: rgba(167, 139, 250, 0.14);
    --input-bg-focus: rgba(30, 41, 59, 0.95);
    --input-ring: rgba(167, 139, 250, 0.2);
    --input-icon-focus: #818cf8;

    /* Liquid Glass Dark — Indigo tinted */
    --glass-bg-teal: rgba(167, 139, 250, 0.05);
    --glass-bg-teal-medium: rgba(167, 139, 250, 0.09);
    --glass-bg-teal-strong: rgba(167, 139, 250, 0.14);
    --glass-border: rgba(167, 139, 250, 0.08);
    --glass-border-teal: rgba(167, 139, 250, 0.14);
    --glass-border-strong: rgba(167, 139, 250, 0.20);
    --glass-true-bg-sidebar: rgba(15, 14, 42, 0.92);
    --glass-true-bg-header: rgba(30, 27, 75, 0.92);

    --glass-stat-blue: linear-gradient(135deg, rgba(49,46,129,0.85), rgba(30,27,75,0.9));
    --glass-stat-purple: linear-gradient(135deg, rgba(118,102,168,0.85), rgba(101,84,148,0.9));
    --glass-stat-indigo: linear-gradient(135deg, rgba(109,112,181,0.85), rgba(92,86,158,0.9));
}


/* =====================================================
   3. COMPONENTES UNICOS DO REPORT
   ===================================================== */


/* -----------------------------------------------------
   3.1 Sidebar Navigation Hover Effects
   ----------------------------------------------------- */

.corFundoAsideHover:hover {
    background: linear-gradient(90deg, var(--layout-sidebar-hover) 0%, transparent 100%) !important;
    border-left: 3px solid var(--layout-sidebar-icon);
    padding-left: calc(0.75rem + 3px) !important;
}

.corLetrasAsideHover:hover {
    color: var(--layout-sidebar-icon) !important;
}

/* Menu Items - Base */
.mainMenu nav ul li a,
.main_menu ul li a,
.openArea {
    position: relative;
    transition: all 0.2s ease !important;
    border-radius: 6px;
    margin: 1px 8px;
}

.mainMenu nav ul li a:hover,
.main_menu ul li a:hover,
.openArea:hover {
    background: var(--layout-sidebar-hover) !important;
}

.mainMenu nav ul li a.active,
.main_menu ul li a.active,
.openArea.active {
    background: var(--layout-sidebar-active) !important;
    color: #fff !important;
}

/* Menu Icons */
.mainMenu nav ul li a i,
.main_menu ul li a i,
.openArea i,
#menuList li a i,
#menuList li a.openMenu i,
#menuList li button.expand i,
#menuList li a i.corIconesAside,
#menuList li button i.corIconesAside {
    transition: color 0.2s ease, transform 0.2s ease !important;
    display: inline-block !important;
}

.mainMenu nav ul li a:hover i,
.main_menu ul li a:hover i,
.openArea:hover i,
#menuList li a:hover i,
#menuList li a.openMenu:hover i,
#menuList li button.expand:hover i,
#menuList li a:hover i.corIconesAside,
#menuList li button:hover i.corIconesAside {
    color: #c4b5fd !important;
    transform: scale(1.08) !important;
}

.mainMenu nav ul li a.active i,
#menuList li a.active i,
#menuList li a.openMenu.active i {
    color: #fff !important;
}


/* -----------------------------------------------------
   3.2 Menu Lateral — Novo Layout Compacto
   ----------------------------------------------------- */

.menu-parent-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-parent-btn {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    line-height: inherit;
}

.menu-parent-btn,
.menu-parent-link {
    padding: 10px 16px;
    gap: 10px;
    border-radius: 8px;
    margin: 1px 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: calc(100% - 16px);
    box-sizing: border-box;
}

.menu-parent-btn:hover,
.menu-parent-link:hover {
    background: var(--layout-sidebar-hover) !important;
}

.menu-parent-link.active,
.menu-parent-btn.active,
.menu-parent-btn[aria-expanded="true"] {
    background: var(--layout-sidebar-active) !important;
}

.menu-icon {
    font-size: 17px !important;
    width: 20px !important;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.menu-parent-btn:hover .menu-icon,
.menu-parent-link:hover .menu-icon {
    color: #c4b5fd !important;
}

.menu-parent-link.active .menu-icon,
.menu-parent-btn.active .menu-icon,
.menu-parent-btn[aria-expanded="true"] .menu-icon {
    color: #fff !important;
}

.menu-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-chevron {
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-parent-btn:hover .menu-chevron {
    opacity: 0.7;
}

.menu-parent-btn[aria-expanded="true"] .menu-chevron,
.expand.active .menu-chevron {
    transform: rotate(90deg);
    opacity: 0.8;
}

.menu-submenu-wrap {
    padding: 4px 0 6px 0;
}

.menu-submenu-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.menu-sub-link {
    padding: 7px 16px 7px 46px;
    gap: 8px;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--layout-sidebar-text);
    opacity: 0.75;
    border-radius: 6px;
    margin: 1px 8px 1px 12px;
    transition: all 0.15s ease;
}

.menu-sub-link:hover {
    opacity: 1;
    background: var(--layout-sidebar-hover) !important;
    color: #fff !important;
}

.menu-sub-link.active {
    opacity: 1;
    background: var(--layout-sidebar-active) !important;
    color: #fff !important;
}

.menu-sub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--layout-sidebar-icon);
    opacity: 0.5;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.menu-sub-link:hover .menu-sub-dot {
    opacity: 1;
    background: #c4b5fd;
}

.menu-sub-link.active .menu-sub-dot {
    opacity: 1;
    background: #fff;
}

/* Menu Badge Totalizador */
.menu-badge-total {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: menu-badge-glow 2s ease-in-out infinite;
}
.menu-badge-total i { font-size: 10px; }

.menu-badge-total.menu-badge-complete {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
    animation: none;
}

.menu-badge-total.menu-badge-none {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes menu-badge-glow {
    0%, 100% { box-shadow: 0 1px 6px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 1px 10px rgba(239, 68, 68, 0.55), 0 0 4px rgba(239, 68, 68, 0.2); }
}

/* Submenu Status Dots */
.menu-sub-dot-done {
    background: #10b981 !important;
    opacity: 1 !important;
}
.menu-sub-dot-pending {
    background: #f59e0b !important;
    opacity: 1 !important;
    animation: menu-dot-blink 2s ease-in-out infinite;
}
.menu-sub-dot-expired {
    background: #ef4444 !important;
    opacity: 1 !important;
    animation: menu-dot-blink 1.2s ease-in-out infinite;
}
@keyframes menu-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Submenu Status Icons */
.menu-sub-status {
    margin-left: auto;
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0.8;
}
.menu-sub-status-done { color: #10b981; }
.menu-sub-status-pending { color: #f59e0b; }
.menu-sub-status-expired { color: #ef4444; }

.menu-sub-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-sub-link[data-estado="expirado"] {
    border-left: 2px solid rgba(239, 68, 68, 0.4);
    margin-left: 10px;
}
.menu-sub-link[data-estado="expirado"]:hover {
    border-left-color: #ef4444;
}

/* Menus Dinamicos (Questionarios/Resultados) */
.menu-dynamic {
    position: relative;
    margin-bottom: 2px;
}
.menu-dynamic > .menu-parent-btn {
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s ease;
}
.menu-dynamic .menu-label {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
    word-break: break-word;
}

.menu-tipo-responder > .menu-parent-btn {
    border-left-color: #60a5fa;
    background: rgba(59, 130, 246, 0.06) !important;
}
.menu-tipo-responder > .menu-parent-btn:hover {
    background: rgba(59, 130, 246, 0.12) !important;
}

.menu-tipo-resultado > .menu-parent-btn {
    border-left-color: #a78bfa;
    background: rgba(139, 92, 246, 0.06) !important;
}
.menu-tipo-resultado > .menu-parent-btn:hover {
    background: rgba(139, 92, 246, 0.12) !important;
}

.menu-tipo-icon {
    font-size: 9px;
    flex-shrink: 0;
    opacity: 0.7;
    margin-left: 2px;
}
.menu-tipo-icon-responder { color: #60a5fa; }
.menu-tipo-icon-resultado { color: #a78bfa; }

.menu-badge-partial {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
}

/* Menu hover legado */
#menuList li a:hover,
#menuList li button:hover,
.openMenu:hover,
.expand:hover {
    color: var(--layout-sidebar-text) !important;
}

/* Engrenagem - rotacao suave no hover */
#menuList li a:hover i.fa-cog,
#menuList li a:hover i.fa-cogs,
#menuList li button:hover i.fa-cog,
#menuList li button:hover i.fa-cogs {
    transform: scale(1.08) rotate(90deg) !important;
    transition: transform 0.4s ease !important;
}


/* -----------------------------------------------------
   3.3 Header Button Hover Effects
   ----------------------------------------------------- */

.buttonMainMenu {
    transition: all 0.3s ease !important;
    border-radius: 10px;
    padding: 4px 8px;
}

.buttonMainMenu:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.buttonMainMenu:hover .img_profile {
    transform: scale(1.05);
}

.buttonMainMenu .img_profile {
    transition: all 0.3s ease;
}

.hide_show_menu {
    transition: all 0.3s ease !important;
    border-radius: 8px;
    padding: 8px;
}

.hide_show_menu:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.hide_show_menu svg {
    transition: transform 0.3s ease;
}

#button_notification {
    transition: all 0.3s ease !important;
    padding: 5px;
    border-radius: 8px;
}

#button_notification:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.1);
}

#button_notification:hover svg {
    animation: bell-ring 0.5s ease;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
}


/* -----------------------------------------------------
   3.4 Dropdown Animation
   ----------------------------------------------------- */

.main_menu,
.notification_card {
    transform-origin: top right;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* -----------------------------------------------------
   3.5 Close Navbar Animation
   ----------------------------------------------------- */

.closeNavbar {
    transition: all 0.3s ease !important;
}

.closeNavbar:hover {
    background: var(--btn-danger-solid) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.1);
    border-color: var(--btn-danger-solid) !important;
}


/* -----------------------------------------------------
   3.6 Year Select Focus
   ----------------------------------------------------- */

#anoLectivoUsar {
    transition: all 0.3s ease !important;
}

#anoLectivoUsar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#anoLectivoUsar:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.3);
}


/* -----------------------------------------------------
   3.7 Dark Mode — Hover Adjustments (Report-unique)
   ----------------------------------------------------- */

[data-theme="dark"] .mainMenu nav ul li a:hover,
[data-theme="dark"] .main_menu ul li a:hover,
[data-theme="dark"] .openArea:hover {
    background: rgba(167, 139, 250, 0.1) !important;
}

[data-theme="dark"] .buttonMainMenu:hover,
[data-theme="dark"] .hide_show_menu:hover,
[data-theme="dark"] #button_notification:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}


/* -----------------------------------------------------
   3.8 Scrollbar (Indigo tinted)
   ----------------------------------------------------- */

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(67, 56, 202, 0.65); border-radius: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(67, 56, 202, 0.95) 0%, rgba(55, 48, 163, 1) 100%); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(40, 30, 140, 1) 0%, rgba(30, 20, 110, 1) 100%); }

* { scrollbar-color: rgba(67, 56, 202, 1) rgba(67, 56, 202, 0.65); scrollbar-width: auto; }

[data-theme="dark"] ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.22); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: linear-gradient(135deg, rgba(167, 139, 250, 0.9) 0%, rgba(124, 58, 237, 1) 100%); border-radius: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, rgba(167, 139, 250, 1) 0%, rgba(124, 58, 237, 1) 100%); }
[data-theme="dark"] * { scrollbar-color: rgba(167, 139, 250, 1) rgba(255, 255, 255, 0.22); }

/* Scrollbar da Sidebar — branco bem visível (contrasta com fundo escuro do .mainMenu) */
.mainMenu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.55); }
.mainMenu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.90); border-radius: 6px; }
.mainMenu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 1); }
.mainMenu { scrollbar-color: rgba(255, 255, 255, 1) rgba(255, 255, 255, 0.55); }
[data-theme="dark"] .mainMenu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.35); }
[data-theme="dark"] .mainMenu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.80); }
[data-theme="dark"] .mainMenu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 1); }
[data-theme="dark"] .mainMenu { scrollbar-color: rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.35); }


/* -----------------------------------------------------
   3.9 Selection (Indigo tinted)
   ----------------------------------------------------- */

::selection { background-color: rgba(67, 56, 202, 0.3); color: inherit; }
[data-theme="dark"] ::selection { background-color: rgba(167, 139, 250, 0.4); }


/* -----------------------------------------------------
   3.10 Sidebar True Glass (backdrop-filter)
   ----------------------------------------------------- */

.mainMenu,
aside.mainMenu {
    background: var(--glass-true-bg-sidebar) !important;
    backdrop-filter: var(--glass-true-blur);
    -webkit-backdrop-filter: var(--glass-true-blur);
    border-right: 1px solid rgba(167, 139, 250, 0.10);
    /* Rail permanente: inset 12px branco translúcido — visível mesmo quando
       o Chrome esconde o scrollbar nativo (modo overlay). */
    box-shadow:
        4px 0 30px rgba(0, 0, 0, 0.12),
        inset -1px 0 0 rgba(255, 255, 255, 0.04),
        inset -12px 0 0 rgba(255, 255, 255, 0.22);
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
}

/* Main content area: scrollbar sempre presente em desktop (>=900px) */
@media (min-width: 900px) {
    main.mainContainer {
        overflow-y: scroll !important;
        scrollbar-gutter: stable;
        box-shadow: inset -12px 0 0 rgba(67, 56, 202, 0.22);
    }
}

/* Menu Skeleton Loading */
.menu-skeleton {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-skeleton-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 8px;
    margin: 0 0;
    animation: skeletonPulse 1.8s ease-in-out infinite;
}

.menu-skeleton-item:nth-child(2) { animation-delay: 0.15s; }
.menu-skeleton-item:nth-child(3) { animation-delay: 0.3s; }
.menu-skeleton-item:nth-child(4) { animation-delay: 0.45s; }
.menu-skeleton-item:nth-child(5) { animation-delay: 0.6s; }
.menu-skeleton-item:nth-child(6) { animation-delay: 0.75s; }
.menu-skeleton-item:nth-child(7) { animation-delay: 0.9s; }

.menu-skeleton-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(167, 139, 250, 0.12);
    flex-shrink: 0;
}

.menu-skeleton-text {
    height: 10px;
    border-radius: 6px;
    background: rgba(167, 139, 250, 0.10);
}

.menu-skeleton-chevron {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(167, 139, 250, 0.08);
    margin-left: auto;
    flex-shrink: 0;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

[data-theme="dark"] .menu-skeleton-icon { background: rgba(167, 139, 250, 0.10); }
[data-theme="dark"] .menu-skeleton-text { background: rgba(167, 139, 250, 0.08); }
[data-theme="dark"] .menu-skeleton-chevron { background: rgba(167, 139, 250, 0.06); }


/* -----------------------------------------------------
   3.11 Sidebar Brand Header (Logo + Title)
   ----------------------------------------------------- */

.sidebar-brand-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(167, 139, 250, 0.10);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.sidebar-brand-title {
    color: #c4b5fd;
    letter-spacing: 0.02em;
    min-width: 120px;
}

.sidebar-brand-accent {
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-type-cursor {
    font-weight: 300;
    color: #c4b5fd;
    animation: sidebarCursorBlink 0.55s step-end infinite;
}

@keyframes sidebarCursorBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Logo sidebar animation */
.sidebar-brand-header img {
    animation: sidebarLogoFloat 3s ease-in-out infinite;
}

@keyframes sidebarLogoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-2px) rotate(-2deg); }
    75%      { transform: translateY(1px) rotate(1.5deg); }
}

[data-theme="dark"] .sidebar-brand-header {
    background: rgba(0, 0, 0, 0.12);
    border-bottom-color: rgba(167, 139, 250, 0.06);
}

[data-theme="dark"] .sidebar-brand-title { color: #a78bfa; }
[data-theme="dark"] .sidebar-type-cursor { color: #a78bfa; }
[data-theme="dark"] .sidebar-brand-accent { color: rgba(255, 255, 255, 0.40); }

/* Logo AngoSchool hover */
.mainMenu header .flex:first-child:hover img {
    transform: scale(1.05);
}

.mainMenu header .flex:first-child img {
    transition: all 0.4s ease;
}


/* -----------------------------------------------------
   3.12 Ano Lectivo Card (Sidebar Year Selector)
   ----------------------------------------------------- */

.ano-lectivo-wrapper {
    width: 100%;
    padding: 16px 16px 8px;
}

.ano-lectivo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.ano-lectivo-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.ano-lectivo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4338ca, #3730a3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.35);
}

.ano-lectivo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ano-lectivo-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: center;
}

.ano-lectivo-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    border: none;
    outline: none;
}

.ano-lectivo-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #4ade80;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 0 28px 0 0 !important;
    width: 100%;
    cursor: pointer;
    outline: none;
}

.ano-lectivo-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1rem;
}

.ano-lectivo-input.sige-searchable-selected {
    background: transparent !important;
    border: none !important;
}

.ano-lectivo-arrow {
    color: rgba(255, 255, 255, 0.45) !important;
    right: 0 !important;
}

.ano-lectivo-card:hover .ano-lectivo-arrow {
    color: rgba(255, 255, 255, 0.7) !important;
}

.ano-lectivo-card .sige-searchable-container {
    border-radius: 0;
}

.ano-lectivo-card .sige-searchable-dropdown {
    min-width: 180px;
}

/* Ano Lectivo - Dark Mode */
[data-theme="dark"] .ano-lectivo-card {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .ano-lectivo-card:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .ano-lectivo-icon {
    background: linear-gradient(135deg, #312e81, #1e1b4b);
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

[data-theme="dark"] .ano-lectivo-select option {
    background: var(--layout-content-bg, #1e293b);
    color: var(--layout-content-text, #e2e8f0);
}

/* Ano Lectivo - Responsivo */
@media (max-width: 768px) {
    .ano-lectivo-wrapper { padding: 12px 12px 6px; }
    .ano-lectivo-card { padding: 8px 12px; gap: 10px; border-radius: 12px; }
    .ano-lectivo-icon { width: 34px; height: 34px; font-size: 13px; border-radius: 8px; }
    .ano-lectivo-input { font-size: 1.05rem; }
    .ano-lectivo-label { font-size: 0.62rem; }
}

/* -----------------------------------------------------
   3.12.1 Trimestre Global (selector na sidebar)
   ----------------------------------------------------- */

.trimestre-card {
    /* mais compacto que .ano-lectivo-card */
    padding: 6px 12px !important;
}

.trimestre-card .trimestre-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 8px;
    /* Cor distinta do ano lectivo (azul vs roxo) */
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.30);
}

.trimestre-texto {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .trimestre-texto {
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .trimestre-card .trimestre-icon { width: 28px; height: 28px; font-size: 11px; }
    .trimestre-texto { font-size: 0.85rem; }
}


/* -----------------------------------------------------
   3.13 Header True Glass
   ----------------------------------------------------- */

.top_header,
header.top_header,
.headerMain {
    background: var(--glass-true-bg-header) !important;
    backdrop-filter: var(--glass-true-blur);
    -webkit-backdrop-filter: var(--glass-true-blur);
    border-bottom: 1px solid rgba(167, 139, 250, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

/* Menu Items Glass Hover */
.mainMenu nav ul li a:hover,
.main_menu ul li a:hover,
.openArea:hover,
.menu-parent-btn:hover,
.menu-parent-link:hover {
    background: rgba(167, 139, 250, 0.10) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.08);
}

.mainMenu nav ul li a.active,
.main_menu ul li a.active,
.openArea.active,
.menu-parent-link.active,
.menu-parent-btn.active,
.menu-parent-btn[aria-expanded="true"] {
    background: rgba(167, 139, 250, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.12), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-sub-link:hover {
    background: rgba(167, 139, 250, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.06);
}

.menu-sub-link.active {
    background: rgba(167, 139, 250, 0.15) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.10);
}


/* -----------------------------------------------------
   3.14 Dropdown Menus Glass
   ----------------------------------------------------- */

.main_menu,
.notification_card {
    background: var(--glass-bg-strong) !important;
    border: 1px solid var(--glass-border-teal) !important;
    box-shadow: var(--glass-shadow-lg), var(--glass-inset) !important;
    border-radius: 14px !important;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    color: var(--layout-content-text) !important;
}

.main_menu ul li {
    border-bottom: 1px solid var(--glass-border-teal) !important;
    margin: 0 !important;
}

.main_menu ul li:last-child {
    border-bottom: none !important;
}

.main_menu ul li a {
    padding: 5px 10px !important;
    border-radius: 6px !important;
    margin: 1px 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--layout-content-text) !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.main_menu ul li a:hover {
    background: var(--glass-bg-teal-medium) !important;
    color: var(--sige-primary) !important;
}

.main_menu ul li a:hover i {
    color: var(--sige-primary) !important;
    transform: scale(1.1) !important;
}

.main_menu ul li a i {
    font-size: 0.7rem !important;
    width: 16px !important;
    text-align: center !important;
    color: var(--sige-primary) !important;
    transition: all 0.2s ease !important;
}

.main_menu ul li a strong {
    font-weight: 600 !important;
    font-size: 0.78rem !important;
}

.notification_card header {
    border-color: var(--glass-border-teal) !important;
}

[data-theme="dark"] .main_menu,
[data-theme="dark"] .notification_card {
    background: var(--glass-bg-strong) !important;
    border-color: var(--glass-border-strong) !important;
    box-shadow: var(--glass-shadow-lg), var(--glass-inset) !important;
}

[data-theme="dark"] .main_menu ul li {
    border-color: var(--glass-border-teal) !important;
}

[data-theme="dark"] .main_menu ul li a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .main_menu ul li a:hover {
    background: var(--glass-bg-teal-medium) !important;
    color: #a78bfa !important;
}

[data-theme="dark"] .main_menu ul li a i,
[data-theme="dark"] .main_menu ul li a:hover i {
    color: #a78bfa !important;
}

[data-theme="dark"] .notification_card header {
    border-color: var(--glass-border-teal) !important;
}


/* -----------------------------------------------------
   3.15 Dark Mode True Glass
   ----------------------------------------------------- */

[data-theme="dark"] .mainMenu,
[data-theme="dark"] aside.mainMenu {
    background: var(--glass-true-bg-sidebar) !important;
    backdrop-filter: var(--glass-true-blur);
    -webkit-backdrop-filter: var(--glass-true-blur);
    border-right: 1px solid rgba(167, 139, 250, 0.06);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25), inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .top_header,
[data-theme="dark"] header.top_header,
[data-theme="dark"] .headerMain {
    background: var(--glass-true-bg-header) !important;
    backdrop-filter: var(--glass-true-blur);
    -webkit-backdrop-filter: var(--glass-true-blur);
    border-bottom: 1px solid rgba(167, 139, 250, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .mainMenu nav ul li a:hover,
[data-theme="dark"] .main_menu ul li a:hover,
[data-theme="dark"] .openArea:hover,
[data-theme="dark"] .menu-parent-btn:hover,
[data-theme="dark"] .menu-parent-link:hover {
    background: rgba(167, 139, 250, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.06);
}

[data-theme="dark"] .mainMenu nav ul li a.active,
[data-theme="dark"] .main_menu ul li a.active,
[data-theme="dark"] .openArea.active,
[data-theme="dark"] .menu-parent-link.active,
[data-theme="dark"] .menu-parent-btn.active,
[data-theme="dark"] .menu-parent-btn[aria-expanded="true"] {
    background: rgba(167, 139, 250, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.10), 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* -----------------------------------------------------
   3.16 @supports Fallback (browsers sem backdrop-filter)
   ----------------------------------------------------- */

@supports not (backdrop-filter: blur(1px)) {
    .mainMenu,
    aside.mainMenu {
        background: linear-gradient(180deg, #312e81 0%, #1e1b4b 50%, #0f0e2a 100%) !important;
    }

    .top_header,
    header.top_header,
    .headerMain {
        background: linear-gradient(135deg, #4338ca 0%, #3730a3 50%, #312e81 100%) !important;
    }
}

/* Mobile: Reduced blur for performance */
@media (max-width: 768px) {
    .mainMenu,
    aside.mainMenu {
        backdrop-filter: blur(8px) saturate(160%);
        -webkit-backdrop-filter: blur(8px) saturate(160%);
    }

    .top_header,
    header.top_header,
    .headerMain {
        backdrop-filter: blur(8px) saturate(160%);
        -webkit-backdrop-filter: blur(8px) saturate(160%);
    }
}


/* -----------------------------------------------------
   3.17 Header Search Wrapper (School Selector)
   ----------------------------------------------------- */

.header-search-wrapper {
    margin: 0;
    width: 280px;
    max-width: 50vw;
}

.header-search-wrapper .sige-searchable-container {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.header-search-wrapper .sige-searchable-container:hover,
.header-search-wrapper .sige-searchable-container:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.header-search-wrapper .sige-searchable-input {
    background: transparent !important;
    border: none !important;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px 6px 32px;
    letter-spacing: 0.01em;
    box-shadow: none !important;
}

.header-search-wrapper .sige-searchable-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

.header-search-wrapper .sige-searchable-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.header-search-wrapper .sige-searchable-input:focus {
    box-shadow: none !important;
    border: none !important;
}

.header-search-wrapper .sige-searchable-arrow {
    right: auto;
    left: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.header-search-wrapper .sige-searchable-arrow.fa-chevron-down::before {
    content: "\f002"; /* fa-search */
}

.header-search-wrapper .sige-searchable-container:focus-within .sige-searchable-arrow {
    color: rgba(255, 255, 255, 0.95);
    transform: none;
}

.header-search-wrapper .sige-searchable-dropdown {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(67, 56, 202, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    max-height: 360px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.header-search-wrapper .sige-searchable-item {
    font-size: 0.84rem;
    color: #1e293b;
    border-bottom-color: rgba(67, 56, 202, 0.06);
}

.header-search-wrapper .sige-searchable-item:hover,
.header-search-wrapper .sige-searchable-item.focused {
    background: rgba(67, 56, 202, 0.10);
    color: #1e1b4b;
}

[data-theme="dark"] .header-search-wrapper .sige-searchable-container {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .header-search-wrapper .sige-searchable-container:hover,
[data-theme="dark"] .header-search-wrapper .sige-searchable-container:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .header-search-wrapper .sige-searchable-dropdown {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-color: rgba(167, 139, 250, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .header-search-wrapper .sige-searchable-item {
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header-search-wrapper .sige-searchable-item:hover,
[data-theme="dark"] .header-search-wrapper .sige-searchable-item.focused {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

@media (max-width: 768px) {
    .header-search-wrapper { width: 160px; max-width: 40vw; }
    .header-search-wrapper .sige-searchable-container { border-radius: 10px; }
    .header-search-wrapper .sige-searchable-input { font-size: 0.78rem; padding: 5px 10px 5px 28px; }
    .header-search-wrapper .sige-searchable-arrow { font-size: 12px; left: 8px; }
    .header-search-wrapper .sige-searchable-dropdown { border-radius: 10px; max-height: 280px; }
    .header-search-wrapper .sige-searchable-item { padding: 8px 10px; font-size: 0.78rem; }
}


/* -----------------------------------------------------
   3.18 Tabs Navigation Modern
   ----------------------------------------------------- */

.tabs-nav-modern {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: wrap;
}
.tab-btn-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn-modern:hover { background: var(--glass-bg-teal); color: var(--text-primary); }
.tab-btn-modern.active {
    background: linear-gradient(135deg, var(--sige-primary), var(--sige-primary-active));
    color: var(--text-inverse);
    box-shadow: 0 4px 12px var(--sige-primary-bg);
}
.tab-btn-modern i { font-size: 0.9rem; }
