/* Design System do sisHorario - Inspirado nos Mockups do Claude Code */

/* ==========================================================================
   1. Variáveis e Tokens de Design (Temas Dark/Light)
   ========================================================================== */
:root {
    /* Cores do Tema Dark (Padrão) */
    --bg: #070a12;
    --side: rgba(13, 17, 27, 0.85);
    --seg: rgba(13, 17, 27, 0.7);
    --topbar: rgba(13, 17, 27, 0.6);
    --panel: rgba(17, 22, 34, 0.5);
    --glass: rgba(17, 22, 34, 0.62);
    --modal: rgba(17, 22, 34, 0.94);
    --overlay: rgba(5, 8, 14, 0.72);
    --input: rgba(10, 14, 22, 0.7);
    --input2: rgba(10, 14, 22, 0.6);
    --inset: rgba(10, 14, 22, 0.4);
    --cell: rgba(20, 26, 40, 0.6);
    --chip: rgba(20, 26, 40, 0.5);
    --cellEmpty: rgba(20, 26, 40, 0.32);
    --stepoff: rgba(20, 26, 40, 0.7);
    --hover: rgba(148, 163, 184, 0.08);
    --t1: #e8ecf4;
    --t2: #cbd5e1;
    
    /* Variáveis de Borda e Opacidade - Dark */
    --b04: rgba(148, 163, 184, 0.04);
    --b06: rgba(148, 163, 184, 0.06);
    --b07: rgba(148, 163, 184, 0.07);
    --b08: rgba(148, 163, 184, 0.08);
    --b10: rgba(148, 163, 184, 0.1);
    --b12: rgba(148, 163, 184, 0.12);
    --b14: rgba(148, 163, 184, 0.14);
    --b16: rgba(148, 163, 184, 0.16);
    --b18: rgba(148, 163, 184, 0.18);
    --b20: rgba(148, 163, 184, 0.2);
    --b22: rgba(148, 163, 184, 0.22);
    --b32: rgba(148, 163, 184, 0.32);

    /* Cores de Destaque Semânticas */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --secondary-light: #c4b5fd;
    --primary-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
    
    --primary-bg: rgba(99, 102, 241, 0.16);
    --primary-border: rgba(99, 102, 241, 0.4);
    --primary-fg: #a5b4fc;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.16);
    --success-border: rgba(16, 185, 129, 0.4);
    --success-fg: #6ee7b7;

    --warning: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.3);
    --warning-fg: #fcd34d;

    --danger: #f43f5e;
    --danger-bg: rgba(244, 63, 94, 0.12);
    --danger-border: rgba(244, 63, 94, 0.2);
    --danger-fg: #fda4af;

    --info: #06b6d4;
    --info-bg: rgba(6, 182, 212, 0.12);
    --info-border: rgba(6, 182, 212, 0.3);
    --info-fg: #67e8f9;

    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

:root[data-theme="light"] {
    /* Cores do Tema Light */
    --bg: #eef1f7;
    --side: rgba(255, 255, 255, 0.9);
    --seg: rgba(15, 23, 42, 0.05);
    --topbar: rgba(255, 255, 255, 0.82);
    --panel: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.86);
    --modal: rgba(255, 255, 255, 0.98);
    --overlay: rgba(15, 23, 42, 0.3);
    --input: #ffffff;
    --input2: rgba(255, 255, 255, 0.92);
    --inset: rgba(15, 23, 42, 0.04);
    --cell: rgba(255, 255, 255, 0.78);
    --chip: rgba(255, 255, 255, 0.72);
    --cellEmpty: rgba(15, 23, 42, 0.025);
    --stepoff: #e2e8f0;
    --hover: rgba(15, 23, 42, 0.05);
    --t1: #0f172a;
    --t2: #334155;
    
    /* Variáveis de Borda e Opacidade - Light */
    --b04: rgba(15, 23, 42, 0.04);
    --b06: rgba(15, 23, 42, 0.05);
    --b07: rgba(15, 23, 42, 0.05);
    --b08: rgba(15, 23, 42, 0.06);
    --b10: rgba(15, 23, 42, 0.08);
    --b12: rgba(15, 23, 42, 0.09);
    --b14: rgba(15, 23, 42, 0.11);
    --b16: rgba(15, 23, 42, 0.13);
    --b18: rgba(15, 23, 42, 0.14);
    --b20: rgba(15, 23, 42, 0.16);
    --b22: rgba(15, 23, 42, 0.18);
    --b32: rgba(15, 23, 42, 0.24);

    --primary-bg: #eef2ff;
    --primary-border: rgba(99, 102, 241, 0.25);
    --primary-fg: #4f46e5;

    --success-bg: rgba(16, 185, 129, 0.1);
    --success-fg: #059669;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --warning-fg: #d97706;
    --danger-bg: rgba(244, 63, 94, 0.08);
    --danger-fg: #e11d48;
    --info-bg: rgba(6, 182, 212, 0.08);
    --info-fg: #0891b2;
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-modal: 0 30px 70px -20px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   2. Estilos de Base e Reset Moderno
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--t1);
    margin: 0;
    padding: 0;
    transition: background-color 0.35s ease, color 0.35s ease;
    overflow-x: hidden;
}

/* Scrollbar Premium */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--b18);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--b32);
    background-clip: content-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
    color: var(--t1);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   3. Animações e Efeitos Micro-interativos
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.82);
    }
}

.anim-fade-up {
    animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in {
    animation: fadeIn 0.3s ease both;
}

/* ==========================================================================
   4. Botões Premium
   ========================================================================== */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-grad);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 26px -12px rgba(99, 102, 241, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.7);
    filter: brightness(1.08);
    color: #ffffff;
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    border: 1px solid var(--b18);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--t2);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-premium-outline:hover {
    background: var(--hover);
    border-color: var(--b32);
    color: var(--t1);
}

.btn-premium-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-fg);
}

.btn-premium-danger:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 10px 24px -10px rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   5. Inputs e Formulários Premium
   ========================================================================== */
.form-group-premium {
    margin-bottom: 18px;
}

.form-label-premium {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-premium {
    width: 100%;
    padding: 11px 14px;
    background: var(--input2);
    border: 1px solid var(--b14);
    border-radius: var(--radius-md);
    color: var(--t1);
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control-premium:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
    background: var(--input);
}

.form-control-premium::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

/* ==========================================================================
   6. Painéis, Cards e Glassmorphism
   ========================================================================== */
.panel-premium {
    background: var(--panel);
    border: 1px solid var(--b10);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.metric-card-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), var(--panel));
    border: 1px solid var(--b12);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
}

.metric-card-premium:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   7. Tabelas Modernas (Substituto do DataTables)
   ========================================================================== */
.table-responsive-premium {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--b10);
    background: var(--panel);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-modern-header {
    display: grid;
    padding: 14px 20px;
    border-bottom: 1px solid var(--b10);
    background: var(--inset);
    align-items: center;
}

.table-modern th {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    background: var(--inset);
    border-bottom: 1px solid var(--b10);
}

.table-modern td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--b06);
    font-size: 13.5px;
    color: var(--t1);
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background: var(--b04);
}

/* Filtro e Caixa de Ações superiores da Tabela */
.table-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 360px;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 14px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: var(--seg);
    border: 1px solid var(--b14);
    border-radius: var(--radius-md);
    color: var(--t1);
    font-size: 13.5px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
    outline: none;
}

/* ==========================================================================
   8. Modais Nativos e Responsivos (Substituto do Bootstrap Modal)
   ========================================================================== */
.modal-overlay-premium {
    position: fixed;
    inset: 0;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay-premium.active {
    display: flex;
    opacity: 1;
}

.modal-wrapper-premium {
    width: 100%;
    max-width: 620px;
    background: var(--modal);
    border: 1px solid var(--b14);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow-modal);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay-premium.active .modal-wrapper-premium {
    transform: translateY(0);
}

.modal-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title-premium {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--t2);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--t1);
}

.modal-body-premium {
    margin-bottom: 20px;
}

.modal-footer-premium {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--b10);
}

/* ==========================================================================
   9. Badges e Status Customizados
   ========================================================================== */
.badge-custom {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 7px;
}

.badge-custom-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-fg);
}

.badge-custom-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-fg);
}

.badge-custom-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-fg);
}

.badge-custom-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: var(--info-fg);
}

.badge-primary-light,
.badge-custom-primary {
    background: var(--primary-bg) !important;
    border: 1px solid var(--primary-border) !important;
    color: var(--primary-fg) !important;
}

/* ==========================================================================
   10. Layouts de Visualização Específicos (Grids e Grades)
   ========================================================================== */
.timetable-container {
    display: grid;
    gap: 8px;
}

.timetable-cell:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   11. Grid e Utilitários de Compatibilidade (Bootstrap Fallbacks)
   ========================================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

/* Helpers de Espaçamento */
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-3 { margin-right: 12px !important; }
.ml-1 { margin-left: 4px !important; }
.ml-2 { margin-left: 8px !important; }
.ml-3 { margin-left: 12px !important; }
.ml-auto { margin-left: auto !important; }

/* Helpers Flexbox */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }

/* Classes de Compatibilidade de Cards */
.card {
    background: var(--panel);
    border: 1px solid var(--b10);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--b10);
    background: var(--inset);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.card-body {
    padding: 20px;
}
.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--b10);
    background: var(--inset);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* Alertas legados */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}
.alert-success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-fg);
}
.alert-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-fg);
}
.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-fg);
}

/* Outros helpers legados */
.shadow-sm { box-shadow: var(--shadow-premium) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--t2) !important; }
.font-weight-bold { font-weight: 700 !important; }
.d-none { display: none !important; }
.text-center { text-align: center !important; }

/* ==========================================================================
   12. Estrutura Base de Layout (Sidebar, Main e Topbar)
   ========================================================================== */
.main-layout-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: var(--bg);
    overflow: hidden;
}

.sidebar-premium {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--side);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--b08);
    padding: 22px 14px;
    position: relative;
    z-index: 99;
    transition: transform 0.3s ease, width 0.3s ease, padding 0.3s ease;
}

.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.topbar-premium {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid var(--b08);
    background: var(--topbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 98;
}

.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 26px 28px 60px;
}

/* Sidebar colapsada no desktop */
@media (min-width: 992px) {
    .sidebar-premium.collapsed {
        width: 78px;
        padding: 22px 8px;
    }
    .sidebar-premium.collapsed a[style*="border-bottom"] {
        display: none !important;
    }
    .sidebar-premium.collapsed .sidebar-title {
        display: none !important;
    }
    .sidebar-premium.collapsed .sidebar-link {
        font-size: 0 !important;
        justify-content: center;
        padding: 12px;
        border-radius: var(--radius-md);
    }
    .sidebar-premium.collapsed .sidebar-link i {
        font-size: 18px;
        margin-right: 0;
    }
    .sidebar-premium.collapsed .sidebar-link.active::before {
        left: 2px;
        height: 20px;
    }
    .sidebar-premium.collapsed .sidebar-user-panel {
        padding: 8px;
        justify-content: center;
        cursor: pointer;
    }
    .sidebar-premium.collapsed .sidebar-user-avatar {
        margin-right: 0;
    }
    .sidebar-premium.collapsed .sidebar-user-info,
    .sidebar-premium.collapsed .sidebar-logout-btn {
        display: none !important;
    }
}

/* Sidebar retrátil responsiva */
@media (max-width: 991px) {
    .sidebar-premium {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
    }
    .sidebar-premium.open {
        transform: translateX(0);
    }
}

/* Menu e Links da Sidebar */
.sidebar-title {
    padding: 12px 10px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #475569;
    text-transform: uppercase;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    transition: all 0.25s ease;
}

.sidebar-link i {
    font-size: 16px;
    color: #64748b;
    width: 20px;
    text-align: center;
    transition: color 0.25s ease;
}

.sidebar-link:hover {
    background: var(--hover);
    color: var(--t1);
}

.sidebar-link:hover i {
    color: var(--t1);
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.14);
    color: var(--t1);
}

.sidebar-link.active i {
    color: #a5b4fc;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 3px;
    background: var(--primary-grad);
}

.sidebar-user-panel {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: auto;
    border-top: 1px solid var(--b08);
    padding-top: 15px;
}

.sidebar-user-panel:hover {
    background: var(--b06);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
}

.sidebar-logout-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.25s ease;
}

.sidebar-logout-btn:hover {
    color: var(--danger-fg);
}

/* ==========================================================================
   9. Componente de Alertas Premium
   ========================================================================== */
.alert {
    position: relative;
    padding: 16px 20px;
    padding-right: 50px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #1e40af;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.alert .close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.alert .close:hover {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.05);
}



