/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== PALETA CITY CHIC (AAG Seleções) ===== */
    
    /* Cores Principais - Tons de Rosa e Vinho */
    --primary: #be185d;       /* Pink 700: Cor principal (Botões, Destaques) */
    --primary-dark: #831843;  /* Pink 900: Vinho (Hover, Títulos fortes) */
    --secondary: #fce7f3;     /* Pink 100: Fundo suave, detalhes delicados */
    
    /* Cores Funcionais */
    --success: #059669;       /* Verde Esmeralda */
    --warning: #d97706;       /* Gold/Âmbar */
    --danger: #e11d48;        /* Vermelho Rosado */
    --info: #2563eb;          /* Azul Real */
    
    /* Fundos e Textos (Light Mode) */
    --bg-primary: #ffffff;    /* Branco Puro */
    --bg-secondary: #fff5f7;  /* Lavender Blush (Rosa quase branco) */
    --bg-tertiary: #fce7f3;   /* Rosa claro para cards/sidebar */
    
    --text-primary: #4a042e;   /* Vinho Profundo (Substituto chique do preto) */
    --text-secondary: #831843; /* Vinho médio */
    --text-muted: #94a3b8;     /* Cinza neutro */
    
    /* Bordas e Sombras */
    --border: #fbcfe8;         /* Borda rosa suave */
    --shadow: rgba(190, 24, 93, 0.15); /* Sombra rosada */
    
    /* Transições */
    --transition: all 0.3s ease;
}

body.dark-mode {
    /* ===== PALETA DARK MODE (City Night) ===== */
    
    /* Ajuste de Cores para Fundo Escuro */
    --primary: #f472b6;        /* Rosa Neon (Para brilhar no escuro) */
    --primary-dark: #be185d;   /* Rosa Médio */
    --secondary: #831843;      /* Vinho */
    
    /* Fundos Escuros */
    --bg-primary: #0f172a;     /* Azul Noturno Profundo */
    --bg-secondary: #1e293b;   /* Slate 800 */
    --bg-tertiary: #334155;    /* Slate 700 */

    /* Textos no Modo Escuro */
    --text-primary: #ffffff;   /* Branco */
    --text-secondary: #fce7f3; /* Rosa muito claro */
    --text-muted: #cbd5e1;     /* Cinza claro */

    --border: #334155;         /* Borda cinza azulada */
    --shadow: rgba(0, 0, 0, 0.5);
}

/* ===== BASE ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

/* ===== HEADER ===== */
.main-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

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

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
}

.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    border-color: var(--primary);
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-tertiary);
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--border);
}

.dropdown-menu .logout {
    color: var(--danger);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* ===== CARDS ===== */
.card {
    background: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 4px 16px var(--shadow);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ===== BOTÕES ===== */
.btn-primary, .btn-secondary, .btn-text {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem;
}

.btn-text:hover {
    background: var(--bg-tertiary);
}

/* ===== BADGES ===== */
.badge, .badge-success, .badge-warning, .badge-danger {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

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

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
}

.welcome-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    opacity: 0.9;
    font-size: 1.125rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* ===== ALERT CARD ===== */
.alert-card {
    grid-column: span 2;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-item:last-child {
    margin-bottom: 0;
}

.alert-item.urgent {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger);
}

.alert-item.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.alert-item.urgent .alert-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.alert-item.warning .alert-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.alert-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== STUDY ITEMS ===== */
.study-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.study-item:last-child {
    margin-bottom: 0;
}

.study-info {
    flex: 1;
}

.study-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.study-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.study-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== EXAM ITEMS ===== */
.exam-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.exam-item:last-child {
    margin-bottom: 0;
}

.exam-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.exam-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.exam-date .month {
    font-size: 0.875rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.exam-details h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.exam-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RANKING ===== */
.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.ranking-item:last-child {
    margin-bottom: 0;
}

.ranking-item.current-user {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
}

.ranking-item .position {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.ranking-item img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.ranking-info {
    flex: 1;
}

.ranking-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ranking-info .status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
}

.ranking-info .status.approved {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.ranking-item .points {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: var(--bg-primary);
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px var(--shadow);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-card {
        grid-column: span 1;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}
/* ===== BANCAS PAGE ===== */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.bancas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.banca-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.banca-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.banca-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.banca-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.banca-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.banca-title p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.banca-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-item i {
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* Banca Details Modal */
.banca-details {
    text-align: center;
}

.banca-logo-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.banca-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.criterios-section, .dicas-section {
    text-align: left;
    margin-bottom: 2rem;
}

.criterios-section h4, .dicas-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.criterios-grid {
    display: grid;
    gap: 1rem;
}

.criterio-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.criterio-item strong {
    color: var(--text-primary);
}

.criterio-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dicas-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dicas-list li {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding-left: 2.5rem;
    position: relative;
}

.dicas-list li::before {
    content: '💡';
    position: absolute;
    left: 0.75rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== EDITAIS PAGE ===== */
.editais-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.filter-input, .filter-select, .setting-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.filter-input:focus, .filter-select:focus, .setting-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.editais-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edital-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.edital-card:hover {
    box-shadow: 0 4px 16px var(--shadow);
}

.edital-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.edital-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.edital-orgao {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.edital-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-col {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-col i {
    color: var(--primary);
}

.edital-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.area-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.edital-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ===== PLANNER PAGE ===== */
.planner-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.planner-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upcoming-events {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.upcoming-events h3 {
    margin-bottom: 1rem;
}

.upcoming-event {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.upcoming-event.exam { border-left-color: var(--danger); }
.upcoming-event.study { border-left-color: var(--primary); }
.upcoming-event.payment { border-left-color: var(--warning); }
.upcoming-event.other { border-left-color: var(--info); }

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.event-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.event-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-legend {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.event-legend h4 {
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 0.25rem;
}

.legend-color.exam { background: var(--danger); }
.legend-color.study { background: var(--primary); }
.legend-color.payment { background: var(--warning); }
.legend-color.other { background: var(--info); }

/* Calendar */
.calendar-container {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.25rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
}

.calendar-day.has-events {
    font-weight: 700;
}

.day-number {
    font-size: 0.9375rem;
}

.day-events {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.event-dot.exam { background: var(--danger); }
.event-dot.study { background: var(--primary); }
.event-dot.payment { background: var(--warning); }
.event-dot.other { background: var(--info); }

/* Forms */
.event-form, .profile-form, .password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}
/* ===== BOLETIM PAGE ===== */
.boletim-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.stat-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.stat-card-large.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.stat-card-large i {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-card-large h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-card-large p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.boletim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
}

/* Disciplinas */
.disciplina-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.disciplina-item:last-child {
    margin-bottom: 0;
}

.disciplina-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.disciplina-header h4 {
    font-size: 1rem;
}

.progress-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar-large {
    width: 100%;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.disciplina-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.disciplina-stats span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.disciplina-stats i {
    color: var(--primary);
}

/* Simulados */
.simulado-item {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.simulado-item:last-child {
    margin-bottom: 0;
}

.simulado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.simulado-header h4 {
    font-size: 1rem;
}

.nota-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.nota-badge.excellent {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.nota-badge.good {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.nota-badge.poor {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.simulado-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.simulado-result {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simulado-result span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar-small {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    overflow: hidden;
}

/* Ranking Card */
.ranking-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.ranking-position {
    margin-bottom: 1.5rem;
}

.position-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ranking-position p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.ranking-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ranking-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ranking-stat strong {
    font-size: 1.5rem;
    color: var(--primary);
}

.ranking-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Achievements */
.achievements {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.achievements h4 {
    margin-bottom: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.achievement-item i {
    font-size: 1.5rem;
    color: var(--warning);
}

/* ===== PERFIL PAGE ===== */
.perfil-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

.perfil-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-avatar {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.profile-stats {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.stat-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-item strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.perfil-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.info-item p {
    font-size: 1rem;
    color: var(--text-primary);
}

.preference-section {
    margin-bottom: 1.5rem;
}

.preference-section:last-child {
    margin-bottom: 0;
}

.preference-section h4 {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.preference-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.preference-tag i {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.preference-tag i:hover {
    opacity: 1;
    color: var(--danger);
}

/* ===== PAGAMENTOS PAGE ===== */
.payments-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.summary-card.warning {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: white;
}

.summary-card.success {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white;
}

.summary-card i {
    font-size: 3rem;
    opacity: 0.9;
}

.summary-card h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.summary-card p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.payments-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
}

.payment-item.urgent {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.payment-item.paid {
    border-left-color: var(--success);
    opacity: 0.8;
}

.payment-item:last-child {
    margin-bottom: 0;
}

.payment-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.payment-code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.payment-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.payment-details span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.payment-actions {
    display: flex;
    gap: 0.75rem;
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

/* Transaction Items */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.transaction-item:last-child {
    margin-bottom: 0;
}

.transaction-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.transaction-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.transaction-value {
    font-size: 1.125rem;
    font-weight: 700;
}

.transaction-value.negative {
    color: var(--danger);
}

.transaction-value.positive {
    color: var(--success);
}

/* Payment Modal */
.payment-modal {
    text-align: center;
}

.payment-info-modal {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    text-align: left;
}

.payment-info-modal p {
    margin-bottom: 0.75rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-btn:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.payment-method-btn i {
    font-size: 2rem;
    color: var(--primary);
}

/* ===== CONFIGURAÇÕES PAGE ===== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item.clickable {
    cursor: pointer;
}

.setting-item.clickable:hover {
    background: var(--bg-tertiary);
}

.setting-item.danger {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.setting-item.danger h4 {
    color: var(--danger);
}

.setting-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: var(--transition);
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* ===== RESPONSIVE ADICIONAL ===== */
@media (max-width: 1200px) {
    .planner-container,
    .perfil-container {
        grid-template-columns: 1fr;
    }
    
    .boletim-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .editais-filters {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .edital-actions {
        flex-direction: column;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}
