/* ═══════════════════════════════════════════
   OUWALA — Design System CSS
   Plataforma SaaS de Gestão Escolar
   ═══════════════════════════════════════════ */

:root {
    /* Cores principais OUWALA (Novo Design System Terra) */
    --ouwala-roxo:          #DC714D; /* Primária (Coral) */
    --ouwala-roxo-claro:    #C46444; /* Secundária (Muted Coral) */
    --ouwala-rosa:          #A65640; /* Terciária (Deep Coral) */
    --ouwala-escuro:        #2D2D2D; /* Charcoal */
    --ouwala-fundo:         #E8E8E8; /* Light Gray */

    /* Cores derivadas */
    --ouwala-roxo-hover:    #B85C3A;
    --ouwala-roxo-light:    rgba(220, 113, 77, 0.08);
    --ouwala-roxo-light-2:  rgba(220, 113, 77, 0.05);
    --ouwala-gradient:      #DC714D; /* Solid */
    --ouwala-gradient-soft: #F0E8E4; /* Soft Coral-White */

    /* Cores de texto */
    --text-primary:    #383838; /* Charcoal */
    --text-secondary:  #5A5A5A;
    --text-muted:      #8E8E8E;
    --text-inverse:    #ffffff;

    /* Cores de fundo */
    --bg-body:         #E0E0E0; /* Light Gray Swatch */
    --bg-card:         #ffffff;
    --bg-sidebar:      #333333; /* Dark Charcoal Sidebar */
    --bg-navbar:       rgba(224, 224, 224, 0.95);
    --bg-input:        #ffffff;
    --bg-hover:        rgba(220, 113, 77, 0.05);

    /* Bordas e sombras (Neutral) */
    --border-color:    #D6D6D6; 
    --border-input:    #BDBDBD; 
    --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md:       0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg:       0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl:       0 24px 64px rgba(0, 0, 0, 0.15);
    --shadow-glow:     0 0 20px rgba(220, 113, 77, 0.3);
    --shadow-inner:    inset 0 2px 6px rgba(0, 0, 0, 0.05);

    /* Status */
    --success:        #10B981;
    --success-bg:     rgba(16, 185, 129, 0.1);
    --warning:        #F59E0B;
    --warning-bg:     rgba(245, 158, 11, 0.1);
    --danger:         #EF4444;
    --danger-bg:      rgba(239, 68, 68, 0.1);
    --info:           #3B82F6;
    --info-bg:        rgba(59, 130, 246, 0.1);

    /* Tipografia */
    --font-primary:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

    /* Dimensões */
    --sidebar-width:     260px;
    --sidebar-collapsed: 72px;
    --navbar-height:     64px;
    --border-radius:     12px; /* Smooth Modern Curves */
    --border-radius-sm:  8px;
    --border-radius-lg:  20px;
    --border-radius-xl:  28px;

    /* Transições (Fluid) */
    --transition-fast:   0.2s ease-in-out;
    --transition:        0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.extra-small { font-size: 0.7rem !important; }
.letter-spacing-1 { letter-spacing: 1px !important; }

/* ───────────────────────────────────────────
   2. DARK THEME
   ─────────────────────────────────────────── */
[data-theme="dark"] {
    --text-primary:    #F5F5F5;
    --text-secondary:  #B0B0B0;
    --text-muted:      #707070;
    --text-inverse:    #121212;

    --bg-body:         #0A0A0A;
    --bg-card:         #121212;
    --bg-sidebar:      #050505;
    --bg-navbar:       rgba(10, 10, 10, 0.95);
    --bg-input:        #1A1A1A;
    --bg-hover:        rgba(255, 69, 0, 0.15);

    --border-color:    #2A2A2A;
    --border-input:    #FF4500;
    --shadow-sm:       2px 2px 0px rgba(0, 0, 0, 0.5);
    --shadow-md:       4px 4px 0px rgba(0, 0, 0, 0.6);
    --shadow-lg:       8px 8px 0px rgba(0, 0, 0, 0.7);
    --shadow-xl:       12px 12px 0px rgba(0, 0, 0, 0.8);
    --shadow-glow:     0 0 20px rgba(255, 69, 0, 0.3);

    --ouwala-roxo-light:    rgba(220, 113, 77, 0.2);
    --ouwala-roxo-light-2:  rgba(220, 113, 77, 0.1);
    --ouwala-gradient-soft: #2D2D2D; /* Solid Charcoal */
}

/* ───────────────────────────────────────────
   3. RESET E BASE GLOBAL
   ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fw-black { font-weight: 950 !important; }
.fw-extrabold { font-weight: 800 !important; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ouwala-roxo);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--ouwala-roxo-hover);
}

::selection {
    background: rgba(220, 113, 77, 0.2);
    color: var(--ouwala-roxo);
}

/* Global Bootstrap Overrides to Brand Identity */
.btn-primary {
    background-color: var(--ouwala-escuro) !important;
    border-color: var(--ouwala-escuro) !important;
    color: white !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--ouwala-roxo) !important;
    border-color: var(--ouwala-roxo) !important;
    box-shadow: 0 8px 20px rgba(220, 113, 77, 0.3) !important;
}

.bg-primary { background-color: var(--ouwala-escuro) !important; }
.text-primary { color: var(--ouwala-escuro) !important; }
.border-primary { border-color: var(--ouwala-escuro) !important; }
.badge.bg-primary { background-color: var(--ouwala-escuro) !important; }
.btn-outline-primary {
    color: var(--ouwala-escuro) !important;
    border-color: var(--ouwala-escuro) !important;
}
.btn-outline-primary:hover {
    background-color: var(--ouwala-roxo) !important;
    color: white !important;
}

/* ───────────────────────────────────────────
   4. LAYOUT PRINCIPAL (Sidebar + Content)
   ─────────────────────────────────────────── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    transition: transform var(--transition-slow), width var(--transition-slow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

.app-navbar {
    height: var(--navbar-height);
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: background var(--transition);
}

.app-main {
    flex: 1;
    padding: 24px;
}

.app-footer {
    padding: 16px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* ───────────────────────────────────────────
   5. SIDEBAR
   ─────────────────────────────────────────── */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
}

.sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 900;
    background: var(--ouwala-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 12px 12px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--ouwala-roxo);
    transform: translateX(2px);
}

.sidebar-link.active {
    background: var(--ouwala-roxo-light);
    color: var(--ouwala-roxo);
    font-weight: 600;
}

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

.sidebar-user {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ouwala-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────
   6. NAVBAR
   ─────────────────────────────────────────── */
.navbar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    display: none;
}

.navbar-toggle:hover {
    background: var(--bg-hover);
    color: var(--ouwala-roxo);
}

.navbar-spacer {
    flex: 1;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-action-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.navbar-action-btn:hover {
    background: var(--bg-hover);
    color: var(--ouwala-roxo);
}

.navbar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--ouwala-rosa);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.navbar-school-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 8px;
    display: none;
}

/* ───────────────────────────────────────────
   7. DARK MODE TOGGLE
   ─────────────────────────────────────────── */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-toggle {
    background: var(--ouwala-roxo);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(20px);
}

.theme-toggle-icon {
    position: absolute;
    font-size: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity var(--transition);
}

.theme-toggle .bi-sun-fill {
    left: 5px;
    color: #f59e0b;
    opacity: 1;
}

.theme-toggle .bi-moon-fill {
    right: 5px;
    color: white;
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .bi-moon-fill {
    opacity: 1;
}

/* ───────────────────────────────────────────
   8. CARDS
   ─────────────────────────────────────────── */
.ouwala-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: hidden;
}

.ouwala-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ouwala-card .card-body {
    padding: 24px;
}

.ouwala-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    font-weight: 600;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    display: flex;
    flex-wrap: wrap; /* Para suportar progress bars abaixo */
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ouwala-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon.purple {
    background: rgba(220, 113, 77, 0.1);
    color: var(--ouwala-roxo);
}

.stat-icon.pink {
    background: rgba(168, 85, 247, 0.1);
    color: var(--ouwala-rosa);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

[data-theme="dark"] .stat-icon {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .stat-icon.purple { color: #A855F7; }
[data-theme="dark"] .stat-icon.pink { color: #D8B4FE; }
[data-theme="dark"] .stat-icon.green { color: #4ADE80; }
[data-theme="dark"] .stat-icon.orange { color: #FB923C; }
[data-theme="dark"] .stat-icon.blue { color: #60A5FA; }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 700;
    width: 100%; /* Empurra para baixo se flex wrap bater */
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ───────────────────────────────────────────
   9. BOTÕES
   ─────────────────────────────────────────── */
.btn-ouwala {
    background: var(--ouwala-escuro); /* Solid Charcoal */
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ouwala::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.5s;
}

.btn-ouwala:hover {
    background: var(--ouwala-roxo);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 113, 77, 0.25);
}

.btn-ouwala:hover::before {
    left: 100%;
}

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

.btn-ouwala-outline {
    background: transparent;
    color: var(--ouwala-roxo);
    border: 2px solid var(--ouwala-roxo);
    padding: 8px 22px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ouwala-outline:hover {
    background: var(--ouwala-roxo);
    color: white;
    transform: translateY(-1px);
}

.btn-ouwala-accent {
    background: var(--ouwala-escuro);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-ouwala-accent:hover {
    background: var(--ouwala-roxo); 
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(45, 45, 45, 0.2);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ───────────────────────────────────────────
   10. TABELAS
   ─────────────────────────────────────────── */
.ouwala-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ouwala-table thead th {
    background: var(--ouwala-roxo-light-2);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.ouwala-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.ouwala-table tbody tr {
    transition: background var(--transition-fast);
}

.ouwala-table tbody tr:hover {
    background: var(--bg-hover);
}

.ouwala-table tbody tr:last-child td {
    border-bottom: none;
}

/* ───────────────────────────────────────────
   11. BADGES
   ─────────────────────────────────────────── */
.badge-ouwala {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 2px; /* Sharp */
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-pendente {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-activo, .badge-aprovado, .badge-pago, .badge-presente {
    background: var(--success-bg);
    color: var(--success);
}

.badge-suspenso, .badge-rejeitado, .badge-atrasado, .badge-falta {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-falta-justificada {
    background: var(--info-bg);
    color: var(--info);
}

/* Badge pulsante para "ao vivo" */
.badge-ao-vivo {
    background: var(--danger);
    color: white;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ───────────────────────────────────────────
   12. FORMULÁRIOS
   ─────────────────────────────────────────── */
.form-control, .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all var(--transition);
    font-family: var(--font-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus, .form-select:focus {
    border-color: var(--ouwala-roxo);
    box-shadow: 0 0 0 4px rgba(220, 113, 77, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.input-group-text {
    background: var(--ouwala-roxo-light-2);
    border: 1.5px solid var(--border-input);
    color: var(--ouwala-roxo);
    font-size: 0.9rem;
}

/* ───────────────────────────────────────────
   13. MODAIS
   ─────────────────────────────────────────── */
.modal-content {
    background: var(--bg-card);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--ouwala-fundo) 0%, #ffffff 100%);
}

.modal-header-premium {
    background: linear-gradient(135deg, var(--ouwala-roxo) 0%, var(--ouwala-roxo-claro) 100%);
    color: white;
}

.modal-header-premium .modal-title {
    color: white;
}

.modal-header-premium .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 32px;
    background: var(--ouwala-fundo);
}

/* Section Titles in Forms */
.form-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ouwala-roxo);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
}


.btn-close {
    filter: var(--text-primary);
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* ───────────────────────────────────────────
   14. ALERTAS / FLASH MESSAGES
   ─────────────────────────────────────────── */
.alert-ouwala {
    border-radius: var(--border-radius-sm);
    border: none;
    padding: 14px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

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

/* ───────────────────────────────────────────
   15. STEPPER (formulário multi-etapas)
   ─────────────────────────────────────────── */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
    min-width: 80px;
}

.stepper-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px; /* Metade do círculo */
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: var(--border-color);
    z-index: 1;
    transition: background var(--transition);
}

.stepper-step.completed:not(:last-child)::after {
    background: var(--ouwala-roxo);
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    background: white;
    transition: all var(--transition);
    position: relative;
    z-index: 2;
}

.stepper-step.active .stepper-circle {
    border-color: var(--ouwala-roxo);
    background: var(--ouwala-roxo);
    color: white;
    box-shadow: 0 0 0 5px rgba(220, 113, 77, 0.15);
}

.stepper-step.completed .stepper-circle {
    border-color: var(--ouwala-roxo);
    background: var(--ouwala-roxo);
    color: white;
}

.stepper-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.stepper-step.active .stepper-label {
    color: var(--ouwala-roxo);
}

/* ───────────────────────────────────────────
   16. GRELHA HORÁRIO
   ─────────────────────────────────────────── */
.schedule-grid {
    overflow-x: auto;
}

.schedule-grid table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.schedule-grid th {
    background: var(--ouwala-roxo-light);
    color: var(--ouwala-roxo);
    padding: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

.schedule-grid td {
    border: 1px solid var(--border-color);
    padding: 8px;
    height: 60px;
    vertical-align: middle;
    text-align: center;
    font-size: 0.8rem;
    transition: background var(--transition-fast);
}

.schedule-grid td:hover {
    background: var(--bg-hover);
}

.schedule-cell {
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-weight: 500;
}

.schedule-cell-subject {
    font-weight: 600;
    display: block;
}

.schedule-cell-teacher,
.schedule-cell-room {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Cores para disciplinas no horário (Revised Palette) */
.schedule-color-1 { background: rgba(255, 69, 0, 0.1); color: #FF4500; }
.schedule-color-2 { background: rgba(255, 189, 0, 0.1); color: #FFBD00; }
.schedule-color-3 { background: rgba(18, 18, 18, 0.1); color: #121212; }
.schedule-color-4 { background: rgba(0, 200, 83, 0.1); color: #00C853; }
.schedule-color-5 { background: rgba(0, 176, 255, 0.1); color: #00B0FF; }
.schedule-color-6 { background: rgba(213, 0, 0, 0.1); color: #D50000; }

/* ───────────────────────────────────────────
   17. PRESENÇAS (toggle buttons)
   ─────────────────────────────────────────── */
.presence-toggle {
    display: inline-flex;
    gap: 4px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.presence-btn {
    padding: 6px 14px;
    border: none;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.presence-btn.presente.active {
    background: var(--success);
    color: white;
}

.presence-btn.falta.active {
    background: var(--danger);
    color: white;
}

.presence-btn.justificada.active {
    background: var(--warning);
    color: white;
}

/* ───────────────────────────────────────────
   18. LANDING PAGE (JETON DESIGN)
   ─────────────────────────────────────────── */
:root {
    --jeton-primary: var(--ouwala-roxo);
    --jeton-black:   var(--text-primary);
    --jeton-white:   var(--bg-body);
    --jeton-gray:    var(--border-color);
    --jeton-radius:  40px;
    --font-landing:  'Outfit', sans-serif;
}

.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.landing-navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    background: var(--jeton-white);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-landing);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300; /* Light weight for modern look */
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 30px;
    color: var(--jeton-black);
}

.hero-title .accent-text {
    color: var(--jeton-primary);
    display: block;
    font-weight: 500; /* Slightly more weight for contrast */
}

.hero-subtitle {
    font-family: var(--font-landing);
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-jeton-primary {
    background: var(--jeton-primary);
    color: white;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.btn-jeton-primary:hover {
    filter: brightness(0.9);
    color: white;
}

.btn-jeton-black {
    background: var(--jeton-black);
    color: white;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.btn-jeton-black:hover {
    background: #333;
    color: white;
}

/* Features */
.features-section {
    padding: 120px 0;
    background: var(--jeton-gray);
}

.section-title {
    font-family: var(--font-landing);
    font-size: 3.5rem;
    font-weight: 200; /* Extra Light */
    letter-spacing: -1.5px;
    color: var(--jeton-black);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-landing);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.feature-card {
    background: #E8E8E8; /* Slightly lighter than the body gray */
    border: none;
    border-radius: 48px;
    padding: 50px 40px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--jeton-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--jeton-primary);
    margin-bottom: 30px;
}

.feature-title {
    font-family: var(--font-landing);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--jeton-black);
}

.feature-desc {
    font-family: var(--font-landing);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Pricing Grid */
.pricing-section {
    padding: 120px 0;
    background: var(--jeton-white);
}

.pricing-card {
    background: var(--jeton-black);
    border-radius: 60px;
    padding: 80px 60px;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.pricing-value {
    color: var(--jeton-primary);
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: -6px;
    line-height: 1;
}

.pricing-currency {
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
    vertical-align: super;
}

.pricing-period {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 40px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    text-align: left;
    display: inline-block;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-features li i {
    color: var(--jeton-primary);
}

/* Footer */
.landing-footer {
    background: var(--jeton-black);
    padding: 80px 0;
    color: rgba(255,255,255,0.6);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.footer-copyright {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* Testimonials Section */
.testimonials-section {
    padding: 120px 0;
    position: relative;
    background: url('../../../brain/d55e5d27-253b-4d24-8e18-afcbf6ab022c/testimonials_bg_1776810947185.png') center/cover no-repeat;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for text readability */
    z-index: 1;
}

.testimonials-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.testimonials-title {
    font-family: var(--font-landing);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: white;
    text-align: center;
    margin-bottom: 80px;
}

.testimonial-card {
    background: rgba(56, 56, 56, 0.7); /* Charcoal Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    color: white;
    max-width: 400px;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.t-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.t-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.t-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: black;
}

.t-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ───────────────────────────────────────────
   20. REFINED STUDENT PANEL (Modern Flat-Shadow)
   ─────────────────────────────────────────── */
.refined-body {
    background: #F0F2F5; /* Very light background for contrast */
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
}

.refined-sidebar {
    background: var(--bg-sidebar);
    width: 280px;
    height: 100vh;
    position: fixed;
    border-radius: 0 40px 40px 0;
    padding: 40px 20px;
    z-index: 1060;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.refined-sidebar.collapsed {
    width: 85px;
    padding: 40px 10px;
}

.sidebar-hide {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.collapsed .sidebar-hide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.sidebar-show {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.collapsed .sidebar-show {
    opacity: 1;
    visibility: visible;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 50px;
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1100;
    cursor: pointer;
    color: #433D60;
    transition: all 0.3s ease;
}

.left-toggle {
    right: -15px;
}

.right-toggle {
    left: -15px;
}

.sidebar-toggle-btn:hover {
    background: #7D69D9;
    color: white;
    transform: scale(1.1);
}

.refined-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-radius: 999px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.collapsed .refined-nav-link {
    padding: 14px 0;
    justify-content: center;
    width: 50px;
    margin-left: auto;
    margin-right: auto;
}

.collapsed .refined-nav-link span {
    display: none;
}

.refined-nav-link:hover, .refined-nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.refined-nav-link.active {
    background: var(--ouwala-fundo); 
    color: var(--text-primary);
    font-weight: 700;
}

.refined-content-area {
    margin-left: 280px;
    padding: 30px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-collapsed .refined-content-area {
    margin-left: 85px;
}

.has-right-sidebar .refined-content-area {
    margin-right: 340px;
}

.right-collapsed .refined-content-area {
    margin-right: 85px;
}

.refined-right-sidebar {
    background: white;
    width: 340px;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    border-radius: 40px 0 0 40px;
    z-index: 1060;
    box-shadow: -10px 0 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* overflow-y removed from here to allow visible toggle button */
}

.right-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
}

.right-sidebar-content::-webkit-scrollbar { width: 0; }

.refined-right-sidebar.collapsed .right-sidebar-content {
    padding: 40px 0;
}

.refined-right-sidebar.collapsed {
    width: 85px;
    overflow-x: hidden;
}

.collapsed .refined-list-item {
    justify-content: center;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    width: 50px;
}

.collapsed .refined-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.collapsed .right-sidebar-title {
    justify-content: center;
    margin-bottom: 30px;
}

.collapsed .refined-chat-list {
    margin-top: 0 !important;
}

.collapsed .sidebar-toggle-btn {
    top: 30px;
}

.refined-right-sidebar::-webkit-scrollbar { width: 0; }

.right-sidebar-section {
    margin-bottom: 40px;
}

.right-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.right-sidebar-title h5 {
    font-weight: 800;
    color: #433D60;
    margin-bottom: 0;
}

.view-all-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8532D9;
    text-decoration: none;
}

.refined-tabs {
    background: #F1F3F7;
    padding: 6px;
    border-radius: 20px;
    display: flex;
    margin-bottom: 30px;
}

.refined-tab-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #A0A5BD;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refined-tab-item.active {
    background: #7D69D9;
    color: white;
    box-shadow: 0 4px 15px rgba(125, 105, 217, 0.3);
}

.refined-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.refined-list-item:hover {
    transform: translateX(-5px);
}

.refined-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
}

.refined-item-info {
    flex: 1;
}

.refined-item-name {
    font-weight: 800;
    color: #433D60;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.refined-item-sub {
    font-size: 0.75rem;
    color: #A0A5BD;
    font-weight: 500;
}

.refined-item-time {
    font-size: 0.7rem;
    color: #D1D5E4;
}

.refined-item-action {
    color: #A0A5BD;
    font-size: 1.2rem;
}

.ai-notif-card {
    background: #F8FAFC;
    border-radius: 25px;
    padding: 20px;
    border-left: 4px solid #7D69D9;
    margin-bottom: 15px;
}

.ai-notif-card.warning { border-left-color: #FF9F43; }
.ai-notif-card.success { border-left-color: #28C76F; }

.ai-notif-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #433D60;
}

.ai-notif-body {
    font-size: 0.8rem;
    color: #6E6B7B;
    line-height: 1.5;
}

.refined-topbar {
    background: white;
    border-radius: 30px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.refined-search {
    background: #F5F7FA;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    width: 300px;
    font-size: 0.9rem;
}

.refined-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

/* Timeline / Courses */
.timeline-container {
    position: relative;
    padding-left: 50px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #E8EBF0;
}

.timeline-item {
    position: relative;
    padding: 20px 0;
    margin-bottom: 20px;
    background: #F9FAFC;
    border-radius: 25px;
    padding-left: 30px;
    padding-right: 30px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid var(--ouwala-roxo);
    border-radius: 50%;
    z-index: 2;
}

.refined-badge {
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cta-box {
    background: linear-gradient(135deg, var(--ouwala-roxo) 0%, #B85C3A 100%);
    color: white;
    border-radius: 35px;
    padding: 35px;
}

/* ───────────────────────────────────────────
   19. MARKETPLACE CARDS
   ─────────────────────────────────────────── */
.school-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.school-card-logo {
    height: 160px;
    background: var(--ouwala-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.school-card-logo img {
    max-height: 80px;
    max-width: 80%;
    object-fit: contain;
}

.school-card-body {
    padding: 20px;
}

.school-card-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.school-card-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ───────────────────────────────────────────
   20. UTILITÁRIOS
   ─────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8532D9; /* User Requested Title Color */
    letter-spacing: -0.3px;
}

.page-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.95rem;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ouwala-roxo-claro);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(133, 50, 217, 0.2);
    border-top-color: var(--ouwala-roxo-claro);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 20px;
    position: relative;
    overflow: hidden;
}



.login-wrapper::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--bg-body);
    border-radius: 50%;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.login-logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--ouwala-roxo-claro);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.login-logo p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ───────────────────────────────────────────
   21. RESPONSIVIDADE
   ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .app-content {
        margin-left: 0;
    }

    .navbar-toggle {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .pricing-value {
        font-size: 3.5rem;
    }

    .stepper-label {
        display: none !important;
    }

    .navbar-school-name {
        display: none;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .app-main {
        padding: 16px;
    }

    .app-navbar {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .pricing-value {
        font-size: 3rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stepper {
        gap: 0;
    }

    .stepper-step:not(:last-child)::after {
        width: 20px;
        margin: 0 4px;
    }

    .stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .stepper-label {
        display: block;
    }

    .navbar-school-name {
        display: block;
    }
}

/* ───────────────────────────────────────────
   22. ANIMAÇÕES DE ENTRADA
   ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes floatingNavFadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.animate-floating-nav {
    animation: floatingNavFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating Nav (Inspired by Jeton) */
.floating-nav-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: none;
    opacity: 0; /* Começa invisível para a animação */
}

.floating-nav {
    display: flex;
    align-items: center;
    background: rgba(56, 56, 56, 0.9); /* Charcoal with Glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 10px;
    border-radius: 50px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    gap: 4px;
}

.floating-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 40px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-nav-link i {
    font-size: 1.1rem;
}

.floating-nav-link span {
    display: none; /* Mobile first */
}

@media (min-width: 768px) {
    .floating-nav-link span {
        display: inline;
    }
}

.floating-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.floating-nav-link.active {
    background: var(--ouwala-roxo); /* The Coral Orange */
    color: white;
    box-shadow: 0 4px 12px rgba(220, 113, 77, 0.3);
}

.floating-nav-link.active i {
    color: white;
}

/* ───────────────────────────────────────────
   23. UTILS INTERATIVOS & PREMIUM
   ─────────────────────────────────────────── */
.transition-all {
    transition: all var(--transition-fast) !important;
}

.hover-translate-x:hover {
    transform: translateX(8px);
}

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

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

.rounded-4 { border-radius: 20px !important; }
.rounded-5 { border-radius: 28px !important; }

/* ───────────────────────────────────────────
   24. PRINT
   ─────────────────────────────────────────── */
@media print {
    .app-sidebar,
    .app-navbar,
    .app-footer,
    .navbar-actions,
    .btn,
    .no-print {
        display: none !important;
    }

    .app-content {
        margin-left: 0 !important;
    }

    .app-main {
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* ───────────────────────────────────────────
   PREMIUM ACTION BUTTONS
   ─────────────────────────────────────────── */
.btn-action-delete {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border: none !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all var(--transition-fast) !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.08);
    padding: 0;
}

.btn-action-delete:hover {
    background: var(--danger) !important;
    color: white !important;
    transform: translateY(-2px) scale(1.1) rotate(8deg);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}

.btn-action-delete i {
    font-size: 1.15rem;
    line-height: 1;
}

.btn-action-deactivate {
    background: rgba(239, 68, 68, 0.04) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast) !important;
}

.btn-action-deactivate:hover {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-action-reactivate {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    font-weight: 600;
    transition: all var(--transition-fast) !important;
}

.btn-action-reactivate:hover {
    background: var(--success) !important;
    color: white !important;
    border-color: var(--success) !important;
}

.btn-white {
    background: white !important;
    color: var(--ouwala-roxo) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-white:hover {
    background: #f8f8f8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}
