/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --primary: #10b981;
    --primary-hover: #059669;
    --accent-blue: #3b82f6; /* Azul vibrante para seleções */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
    --sidebar-width: 260px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif;
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* --- TELA DE AUTENTICAÇÃO (LOGIN) --- */
.auth-overlay { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}
.auth-overlay.active { display: flex; }

.auth-box { 
    background: var(--card-dark); 
    padding: 2.5rem; 
    border-radius: 1.5rem; 
    width: 100%; 
    max-width: 400px; 
    border: 1px solid var(--border); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.auth-input {
    background: #0f172a !important;
    border: 1.5px solid var(--border) !important;
    padding: 0.8rem 1rem !important;
    border-radius: 0.7rem !important;
    color: white !important;
    width: 100%;
    margin-top: 5px;
}

/* --- LAYOUT ESTRUTURAL --- */
#app-content { display: flex; min-height: 100vh; }

.sidebar { 
    width: var(--sidebar-width); 
    background: var(--card-dark); 
    border-right: 1px solid var(--border); 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    position: sticky;
    top: 0;
    height: 100vh;
}

.nav-header { font-size: 1.4rem; font-weight: 800; margin-bottom: 2.5rem; }
.nav-header span { color: var(--primary); }

.nav-links { list-style: none; flex-grow: 1; }
.nav-links li { 
    padding: 0.8rem 1rem; 
    margin-bottom: 0.5rem; 
    border-radius: 0.6rem; 
    cursor: pointer; 
    color: var(--text-dim); 
    transition: 0.2s;
}
.nav-links li:hover { background: var(--bg-dark); color: var(--primary); }

.main-viewport { 
    flex-grow: 1; 
    padding: 2.5rem; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- MENU PRINCIPAL (GRID 2x2) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
}

.stat-card {
    background: var(--card-dark);
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.stat-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2); 
}
.stat-card h3 { margin: 0; font-size: 2rem; color: var(--primary); }

/* --- CALENDÁRIO COMPACTO --- */
.calendar-container { 
    background: var(--card-dark); 
    border: 1px solid var(--border); 
    border-radius: 1.2rem; 
    padding: 1.5rem; 
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
}

.calendar-day { 
    aspect-ratio: 1/1; 
    background: #0f172a; 
    border: 1px solid var(--border); 
    border-radius: 0.8rem; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.calendar-day.selected { 
    background-color: var(--accent-blue) !important; 
    color: white !important;
    font-weight: bold;
}

/* Marcações de Status */
.calendar-day.feriado { 
    border-left: 4px solid var(--danger) !important; 
    background: rgba(239, 68, 68, 0.1) !important; 
}
.calendar-day.evento { 
    border-left: 4px solid #a855f7 !important; 
    background: rgba(168, 85, 247, 0.1) !important; 
}

.day-label { 
    font-size: 10px; 
    color: var(--text-dim); 
    text-align: center; 
    margin-top: 4px; 
    display: block;
    max-width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* --- TABELAS --- */
.table-wrapper { 
    background: var(--card-dark); 
    border-radius: 1.2rem; 
    border: 1px solid var(--border); 
    overflow-x: auto; 
}
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th { text-align: left; padding: 1.2rem; background: rgba(0,0,0,0.2); color: var(--text-dim); font-size: 0.75rem; }
td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }

/* --- BOTÕES E ELEMENTOS --- */
.btn-primary { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    cursor: pointer; 
    font-weight: 700; 
    width: 100%; 
}
.back-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.logout-btn { 
    background: rgba(239, 68, 68, 0.1); 
    color: var(--danger); 
    border: 1px solid var(--danger); 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    cursor: pointer; 
    margin-top: auto; 
}

/* --- SEÇÕES --- */
.app-section { display: none; }
.app-section.active { display: block; animation: fadeIn 0.3s ease; }

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

/* --- MEDIA QUERIES: RESPONSIVIDADE MOBILE --- */
@media (max-width: 768px) {
    #app-content { flex-direction: column; }
    
    .sidebar {
        width: 100% !important;
        height: auto !important;
        padding: 0.8rem !important;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-header {
        margin-bottom: 0.5rem !important;
        text-align: center;
        font-size: 1.1rem !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px !important;
        margin: 0 !important;
    }

    .nav-links li { 
        background: var(--bg-dark) !important;
        padding: 6px 10px !important; 
        font-size: 0.8rem !important;
        border: 1px solid var(--border);
        margin: 0 !important;
        flex: 1 1 auto;
        text-align: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-top: 2rem;
    }

    .logout-btn {
        margin-top: 10px !important;
        padding: 5px !important;
        font-size: 0.75rem !important;
    }
}
:root {
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --primary: #10b981;
    --primary-hover: #059669;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    margin: 0; 
    overflow: hidden; 
}

/* --- TELA DE AUTENTICAÇÃO (LOGIN) --- */
.auth-overlay { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}
.auth-overlay.active { display: flex; }

.auth-box { 
    background: var(--card-dark); 
    padding: 2.5rem; 
    border-radius: 1.5rem; 
    width: 100%; 
    max-width: 400px; 
    border: 1px solid var(--border); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.auth-brand { text-align: center; margin-bottom: 2rem; }
.logo-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.auth-input {
    background: #0f172a !important;
    border: 1.5px solid var(--border) !important;
    padding: 0.8rem 1rem !important;
    border-radius: 0.7rem !important;
    color: white !important;
    width: 100%;
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
}
.auth-input:focus { border-color: var(--primary) !important; outline: none; }

.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-dim); }
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* --- ESTRUTURA DO APP --- */
#app-content { display: flex; min-height: 100vh; }

.sidebar { 
    width: 260px; 
    background: var(--card-dark); 
    border-right: 1px solid var(--border); 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
}

.nav-header { font-size: 1.4rem; font-weight: 800; margin-bottom: 2.5rem; }
.nav-header span { color: var(--primary); }

.nav-links { list-style: none; padding: 0; flex-grow: 1; }
.nav-links li { 
    padding: 0.8rem 1rem; 
    margin-bottom: 0.5rem; 
    border-radius: 0.6rem; 
    cursor: pointer; 
    color: var(--text-dim); 
    transition: 0.2s;
}
.nav-links li:hover { background: var(--bg-dark); color: var(--primary); }

.main-viewport { flex-grow: 1; padding: 2.5rem; overflow-y: auto; height: 100vh; }

.app-section { display: none; }
.app-section.active { display: block; animation: fadeIn 0.3s ease-out; }

/* --- MENU PRINCIPAL (GRID 2x2) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
}

.stat-card {
    background: var(--card-dark);
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.stat-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2); }
.stat-card h3 { margin: 0; font-size: 2rem; color: var(--primary); }

/* --- BOTÕES E ELEMENTOS --- */
.back-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    margin-bottom: 1.5rem;
}
.back-link:hover { background: var(--primary); border-color: var(--primary); transform: translateX(-5px); }

.btn-primary { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    cursor: pointer; 
    font-weight: 700; 
    width: 100%; 
}
.btn-primary:hover { background: var(--primary-hover); }

.logout-btn { 
    background: rgba(239, 68, 68, 0.1); 
    color: var(--danger); 
    border: 1px solid var(--danger); 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    cursor: pointer; 
    margin-top: auto; 
}

/* --- CALENDÁRIO --- */
.calendar-container { background: var(--card-dark); border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.2rem; margin-bottom: 2rem; }
.btn-toggle-cal { 
    background: #0f172a; 
    border: 1.5px solid var(--primary); 
    color: var(--primary); 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    width: 100%; 
    cursor: pointer; 
    font-weight: 700; 
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 15px; }
.calendar-day { 
    aspect-ratio: 1; 
    background: #0f172a; 
    border: 1px solid var(--border); 
    border-radius: 0.6rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
}
.calendar-day.selected { border-color: var(--primary); color: var(--primary); font-weight: bold; }

/* --- TABELAS E SELEÇÕES --- */
select {
    background: #0f172a;
    color: white;
    border: 1.5px solid var(--border);
    padding: 0.6rem;
    border-radius: 0.6rem;
    width: 100%;
    cursor: pointer;
}
.table-wrapper { background: var(--card-dark); border-radius: 1.2rem; border: 1px solid var(--border); overflow: hidden; }
.table-date-title { padding: 1.5rem; border-bottom: 1px solid var(--border); margin: 0; background: rgba(255,255,255,0.02); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1.2rem; background: rgba(0,0,0,0.2); color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; }
td { padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--border); }

/* --- GESTÃO DE LISTAS --- */
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.config-card { background: var(--card-dark); padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); }
.input-action { display: flex; gap: 10px; margin-bottom: 1rem; }
.input-action input { background: #0f172a; border: 1px solid var(--border); color: white; padding: 0.5rem; border-radius: 0.5rem; flex-grow: 1; }
.input-action button { background: var(--primary); border: none; color: white; width: 40px; border-radius: 0.5rem; cursor: pointer; font-weight: bold; }
.data-list { list-style: none; padding: 0; max-height: 200px; overflow-y: auto; }
.data-list li { display: flex; justify-content: space-between; padding: 0.6rem; border-bottom: 1px solid var(--border); }
.data-list li button { background: none; border: none; color: var(--danger); cursor: pointer; }

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

/* Container do Calendário */
.calendar-controls {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.select-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.select-group label {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* Dias da Semana - Organização */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 10px;
    padding: 5px 0;
}

/* Grade de Dias */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1/1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
    position: relative;
    padding: 5px;
}

/* Cores para Marcações de Eventos */
.calendar-day.feriado { background: rgba(239, 68, 68, 0.2); border-color: var(--danger); color: #ff8080; }
.calendar-day.evento { background: rgba(16, 185, 129, 0.2); border-color: var(--primary); color: #8effcb; }

.day-label {
    font-size: 0.6rem;
    text-align: center;
    margin-top: 4px;
    line-height: 1;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.calendar-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}
:root {
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --primary: #10b981;
    --primary-hover: #059669;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); margin: 0; overflow: hidden; }

.auth-overlay { position: fixed; inset: 0; background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); display: none; align-items: center; justify-content: center; z-index: 1000; }
.auth-overlay.active { display: flex; }
.auth-box { background: var(--card-dark); padding: 2.5rem; border-radius: 1.5rem; width: 100%; max-width: 400px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.auth-input { background: #0f172a !important; border: 1.5px solid var(--border) !important; padding: 0.8rem 1rem !important; border-radius: 0.7rem !important; color: white !important; width: 100%; margin-top: 5px; box-sizing: border-box; }

#app-content { display: flex; height: 100vh; }
.sidebar { width: 260px; background: var(--card-dark); border-right: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; }
.nav-links { list-style: none; padding: 0; margin-top: 2rem; flex-grow: 1; }
.nav-links li { padding: 1rem; cursor: pointer; border-radius: 0.5rem; color: var(--text-dim); }
.nav-links li:hover { background: var(--bg-dark); color: var(--primary); }
.main-viewport { flex-grow: 1; padding: 2.5rem; overflow-y: auto; }
.app-section { display: none; }
.app-section.active { display: block; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, 280px); gap: 2rem; justify-content: center; margin-top: 4rem; }
.stat-card { background: var(--card-dark); padding: 3.5rem 1rem; border-radius: 1.5rem; border: 1px solid var(--border); text-align: center; cursor: pointer; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.stat-card h3 { color: var(--primary); font-size: 2rem; margin: 0; }

.calendar-container { background: var(--card-dark); border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.5rem; margin-bottom: 2rem; }
.calendar-controls { display: flex; gap: 15px; margin: 15px 0; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.select-group { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 700; color: var(--primary); font-size: 0.85rem; margin-bottom: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-day { aspect-ratio: 1/1; background: #0f172a; border: 1px solid var(--border); border-radius: 0.8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; position: relative; }
.calendar-day.selected { border-color: var(--primary); background: rgba(16, 185, 129, 0.1); }

.calendar-day.feriado { background: rgba(239, 68, 68, 0.15); border-color: var(--danger); color: #ff8080; }
.calendar-day.evento { background: rgba(16, 185, 129, 0.15); border-color: var(--primary); color: #8effcb; }
.day-label { font-size: 0.55rem; text-align: center; width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

.table-wrapper { background: var(--card-dark); border-radius: 1.2rem; border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1.2rem; background: rgba(0,0,0,0.2); font-size: 0.75rem; color: var(--text-dim); }
td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }

/* LISTAS DE CADASTRO */
.data-list { list-style: none; padding: 0; margin-top: 1rem; }
.data-list li { display: flex; justify-content: space-between; align-items: center; background: #0f172a; padding: 0.8rem; border-radius: 0.5rem; margin-bottom: 0.5rem; border: 1px solid var(--border); }
.data-list li button { background: var(--danger); color: white; border: none; padding: 0.2rem 0.5rem; border-radius: 0.3rem; cursor: pointer; }

.btn-primary { background: var(--primary); color: white; border: none; padding: 0.8rem; border-radius: 0.8rem; cursor: pointer; font-weight: bold; width: 100%; }
.back-link { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-main); padding: 0.6rem 1.2rem; border-radius: 0.75rem; cursor: pointer; margin-bottom: 1rem; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-box { background: var(--card-dark); padding: 2rem; border-radius: 1rem; width: 400px; border: 1px solid var(--border); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

:root {
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --primary: #10b981;
    --primary-hover: #059669;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); margin: 0; overflow: hidden; }

/* AUTH */
.auth-overlay { position: fixed; inset: 0; background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); display: none; align-items: center; justify-content: center; z-index: 1000; }
.auth-overlay.active { display: flex; }
.auth-box { background: var(--card-dark); padding: 2.5rem; border-radius: 1.5rem; width: 100%; max-width: 400px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.auth-input { background: #0f172a !important; border: 1.5px solid var(--border) !important; padding: 0.8rem 1rem !important; border-radius: 0.7rem !important; color: white !important; width: 100%; margin-top: 5px; }

/* SIDEBAR E LAYOUT */
#app-content { display: flex; height: 100vh; }
.sidebar { width: 260px; background: var(--card-dark); border-right: 1px solid var(--border); padding: 2rem; display: flex; flex-direction: column; }
.nav-links { list-style: none; padding: 0; margin-top: 2rem; flex-grow: 1; }
.nav-links li { padding: 1rem; cursor: pointer; border-radius: 0.5rem; color: var(--text-dim); }
.nav-links li:hover { background: var(--bg-dark); color: var(--primary); }
.main-viewport { flex-grow: 1; padding: 2.5rem; overflow-y: auto; }
.app-section { display: none; }
.app-section.active { display: block; }

/* DASHBOARD GRID */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 280px); gap: 2rem; justify-content: center; margin-top: 4rem; }
.stat-card { background: var(--card-dark); padding: 3.5rem 1rem; border-radius: 1.5rem; border: 1px solid var(--border); text-align: center; cursor: pointer; transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.stat-card h3 { color: var(--primary); font-size: 2rem; margin: 0; }

/* CALENDÁRIO - AJUSTE DE ALINHAMENTO */
.calendar-container { background: var(--card-dark); border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.5rem; margin-bottom: 2rem; }
.calendar-controls { display: flex; gap: 15px; margin: 15px 0; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.select-group { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.select-group label { font-size: 0.75rem; color: var(--text-dim); }

/* CORREÇÃO AQUI: Grade de 7 colunas para os nomes dos dias */
.calendar-weekdays { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    text-align: center; 
    font-weight: 700; 
    color: var(--primary); 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
}

/* Grade de 7 colunas para os números */
.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
}

.calendar-day { 
    aspect-ratio: 1/1; 
    background: #0f172a; 
    border: 1px solid var(--border); 
    border-radius: 0.8rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    font-size: 0.9rem;
    position: relative;
}
.calendar-day.selected { border-color: var(--primary); background: rgba(16, 185, 129, 0.1); }

/* MARCAÇÕES */
.calendar-day.feriado { background: rgba(239, 68, 68, 0.15); border-color: var(--danger); color: #ff8080; }
.calendar-day.evento { background: rgba(16, 185, 129, 0.15); border-color: var(--primary); color: #8effcb; }
.day-label { font-size: 0.55rem; text-align: center; width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

/* TABELAS */
.table-wrapper { background: var(--card-dark); border-radius: 1.2rem; border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1.2rem; background: rgba(0,0,0,0.2); font-size: 0.75rem; color: var(--text-dim); }
td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }

/* BOTÕES */
.btn-primary { background: var(--primary); color: white; border: none; padding: 0.8rem; border-radius: 0.8rem; cursor: pointer; font-weight: bold; width: 100%; }
.back-link { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-main); padding: 0.6rem 1.2rem; border-radius: 0.75rem; cursor: pointer; margin-bottom: 1rem; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-box { background: var(--card-dark); padding: 2rem; border-radius: 1rem; width: 400px; border: 1px solid var(--border); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.app-section { display: none; }
.app-section.active { display: block; }
.data-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 5px; 
    border-bottom: 1px solid #eee; 
}

.app-section {
    display: none; /* Esconde todas as seções */
}

.app-section.active {
    display: block; /* Mostra apenas a que tiver a classe active */
}
/* Container Principal do Calendário */
.agenda-container {
    background-color: #111827; /* Fundo escuro profundo */
    color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    max-width: 600px; /* Diminui a largura total */
    margin: 0 auto;
    font-family: sans-serif;
}

/* Título e Labels */
.agenda-header {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Inputs de Mês e Ano */
input, select {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: white;
    padding: 8px;
    border-radius: 6px;
    width: 100%;
}

/* Grid do Calendário */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px; /* Espaçamento menor */
    margin-top: 20px;
}

/* Dias Individuais */
.day-cell {
    background-color: #1f2937; /* Cinza azulado escuro */
    border: 1px solid #374151;
    aspect-ratio: 1 / 1; /* Mantém quadradinho */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.day-cell:hover {
    background-color: #374151;
}

/* Dia Selecionado (Destaque Azul) */
.day-cell.active {
    background-color: #3b82f6; /* Azul vibrante da imagem */
    border-color: #60a5fa;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Dias Vazios ou de outro mês */
.day-cell.empty {
    background: transparent;
    border: none;
    opacity: 0.3;
}
/* Seleção com botão esquerdo */
.calendar-day.selected {
    background-color: #3b82f6 !important; /* O azul das suas imagens */
    color: white !important;
    font-weight: bold;
}

/* Estilos de personalização (Botão direito) */
.status-feriado {
    border-left: 5px solid #ef4444 !important; /* Vermelho */
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.status-evento {
    border-left: 5px solid #a855f7 !important; /* Roxo */
    background-color: rgba(168, 85, 247, 0.1) !important;
}

/* Ajuste o tamanho do calendário para ser menor como pediu */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 450px; /* Reduz o tamanho total */
    margin: 0 auto;
}

.calendar-day {
    padding: 8px;
    font-size: 0.85rem;
    min-height: 40px;
    /* ... seus outros estilos de borda e cor ... */
}
/* Container dos dias da semana */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas iguais */
    text-align: center;
    font-weight: bold;
    color: #10b981; /* Verde esmeralda das suas imagens */
    margin-bottom: 10px;
}

/* Grid de números */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Mesmas 7 colunas */
    gap: 8px;
    max-width: 100%;
}

/* Estilo para as células vazias (para alinhar o dia 1 ao dia da semana correto) */
.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}
.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column; /* Coloca o número em cima e o texto embaixo */
    align-items: center;
    justify-content: center;
    min-height: 60px; /* Aumentamos um pouco para caber o texto */
    padding: 5px;
}

.day-label {
    font-size: 10px;
    color: #cbd5e1;
    text-align: center;
    margin-top: 4px;
    line-height: 1;
    display: block;
    max-width: 90%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis; /* Adiciona "..." se o texto for muito longo */
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas iguais obrigatoriamente */
    gap: 8px;
    background: #111827;
    padding: 10px;
    border-radius: 8px;
}

.calendar-day {
    aspect-ratio: 1 / 1; /* Garante que os dias sejam quadrados */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-day span {
    font-size: 1rem;
    font-weight: 500;
}

/* Esconde as bordas das células vazias */
.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}
.schedule-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 4px solid #10b981; /* Verde esmeralda para combinar com seu tema */
}
/* --- CONFIGURAÇÕES GLOBAIS --- */
:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --bg-dark: #111827;
    --bg-card: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- LAYOUT ESTRUTURAL --- */
#app-content {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Adaptável */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.main-viewport {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- DASHBOARD GRID (Cards Iniciais) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* --- CALENDÁRIO RESPONSIVO --- */
.calendar-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #2d3748;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
}

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

/* --- TABELAS RESPONSIVAS --- */
.table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    overflow-x: auto; /* Permite scroll horizontal em telas pequenas */
    border: 1px solid var(--border);
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Garante que a tabela não esmague */
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

select {
    width: 100%;
    padding: 8px;
    background: #374151;
    border: 1px solid var(--border);
    color: white;
    border-radius: 6px;
    outline: none;
}

/* --- SEÇÕES --- */
.app-section {
    display: none;
}

.app-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* --- 1. VARIÁVEIS E RESET --- */
:root {
    --bg-dark: #0f172a;
    --card-dark: #1e293b;
    --primary: #10b981; /* Verde Esmeralda */
    --primary-hover: #059669;
    --accent-blue: #3b82f6; /* Azul Vibrante das imagens */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* --- 2. TELA DE LOGIN (AUTH) --- */
.auth-overlay { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
}
.auth-overlay.active { display: flex; }

.auth-box { 
    background: var(--card-dark); 
    padding: 2.5rem; 
    border-radius: 1.5rem; 
    width: 100%; 
    max-width: 400px; 
    border: 1px solid var(--border); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.auth-input {
    background: #0f172a !important;
    border: 1.5px solid var(--border) !important;
    padding: 0.8rem 1rem !important;
    border-radius: 0.7rem !important;
    color: white !important;
    width: 100%;
    margin-top: 5px;
}

/* --- 3. ESTRUTURA PRINCIPAL --- */
#app-content { display: flex; min-height: 100vh; }

.sidebar { 
    width: 260px; 
    background: var(--card-dark); 
    border-right: 1px solid var(--border); 
    padding: 2rem; 
    display: flex; 
    flex-direction: column; 
    position: sticky;
    top: 0;
    height: 100vh;
}

.nav-header { font-size: 1.4rem; font-weight: 800; margin-bottom: 2.5rem; }
.nav-header span { color: var(--primary); }

.nav-links { list-style: none; flex-grow: 1; }
.nav-links li { 
    padding: 0.8rem 1rem; 
    margin-bottom: 0.5rem; 
    border-radius: 0.6rem; 
    cursor: pointer; 
    color: var(--text-dim); 
    transition: 0.2s;
}
.nav-links li:hover { background: var(--bg-dark); color: var(--primary); }

.main-viewport { 
    flex-grow: 1; 
    padding: 2.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo horizontalmente */
}

/* --- 4. DASHBOARD (GRID 2x2 CENTRALIZADO) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px); /* Garante o formato quadrado */
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.stat-card {
    background: var(--card-dark);
    padding: 3.5rem 1rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.stat-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2); 
}

.stat-card h3 { font-size: 2rem; color: var(--primary); margin: 0; }
.stat-card p { color: var(--text-dim); font-size: 0.9rem; }

/* --- 5. CALENDÁRIO --- */
.calendar-container { 
    background: var(--card-dark); 
    border: 1px solid var(--border); 
    border-radius: 1.2rem; 
    padding: 1.5rem; 
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px; /* Calendário compacto */
}

.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
}

.calendar-day { 
    aspect-ratio: 1/1; 
    background: #0f172a; 
    border: 1px solid var(--border); 
    border-radius: 0.8rem; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

/* Dia selecionado - Azul Vibrante */
.calendar-day.selected { 
    background-color: var(--accent-blue) !important; 
    color: white !important;
    border-color: #60a5fa;
    font-weight: bold;
}

/* Status: Feriado e Evento */
.calendar-day.feriado { 
    border-left: 4px solid var(--danger) !important; 
    background: rgba(239, 68, 68, 0.1) !important; 
}
.calendar-day.evento { 
    border-left: 4px solid #a855f7 !important; 
    background: rgba(168, 85, 247, 0.1) !important; 
}

.day-label { 
    font-size: 10px; 
    color: var(--text-dim); 
    text-align: center; 
    margin-top: 4px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    width: 90%;
}

/* --- 6. TABELAS E SEÇÕES --- */
.app-section { display: none; width: 100%; }
.app-section.active { display: block; animation: fadeIn 0.3s ease; }

.table-wrapper { 
    background: var(--card-dark); 
    border-radius: 1.2rem; 
    border: 1px solid var(--border); 
    overflow: hidden; 
    width: 100%;
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1.2rem; background: rgba(0,0,0,0.2); color: var(--text-dim); font-size: 0.75rem; }
td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }

/* --- 7. BOTÕES --- */
.btn-primary { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    cursor: pointer; 
    font-weight: 700; 
    width: 100%; 
}

.logout-btn { 
    background: rgba(239, 68, 68, 0.1); 
    color: var(--danger); 
    border: 1px solid var(--danger); 
    padding: 0.8rem; 
    border-radius: 0.8rem; 
    cursor: pointer; 
    margin-top: auto; 
}

/* --- 8. RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    #app-content { flex-direction: column; }
    
    .sidebar {
        width: 100% !important;
        height: auto !important;
        padding: 1rem !important;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .nav-links li { 
        padding: 8px 12px !important; 
        font-size: 0.8rem; 
        background: var(--bg-dark);
    }

    .dashboard-grid {
        grid-template-columns: 1fr; /* No mobile, vira lista */
        max-width: 300px;
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Container principal do calendário */
.calendar-expandable {
    display: none; /* Controlado pelo JS */
    width: 100%;
    max-width: 380px; /* Tamanho ideal para mobile/desktop */
    margin: 20px auto; /* Centraliza o bloco na tela */
    padding: 15px;
    background-color: #1a1d23;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Cabeçalho de seleção (Mês/Ano) */
.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-controls select {
    background: #252a34;
    color: white;
    border: 1px solid #3f4451;
    padding: 5px 10px;
    border-radius: 5px;
    outline: none;
}

/* Grid dos Dias da Semana (DOM, SEG...) */
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: #2ecc71; /* Verde das suas imagens */
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* O Grid dos Dias */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas iguais */
    gap: 5px; /* Espaço entre os quadrados */
}

/* Estilo do Quadrado do Dia */
.calendar-day {
    aspect-ratio: 1 / 1; /* FORÇA o formato de quadrado perfeito */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #252a34;
    color: white;
    cursor: pointer;
    border-radius: 4px; /* Leve arredondamento nos cantos */
    font-size: 1rem;
    transition: background 0.2s;
    position: relative;
}

.calendar-day:hover {
    background-color: #3f4451;
}

/* Dia Selecionado (Azul da sua imagem) */
.calendar-day.selected {
    background-color: #3b82f6 !important;
    font-weight: bold;
}

/* Dias vazios (início do mês) */
.calendar-day.empty {
    background: transparent;
    cursor: default;
}

/* Rótulos pequenos dentro do quadrado (ex: Feriado, Letivo) */
.day-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    margin-top: 2px;
    text-align: center;
    line-height: 1;
}
/* Container do Calendário */
/* 1. Container Principal */
.calendar-expandable {
    display: none; /* Mantido para o controle do seu JS */
    width: 100%;
    max-width: 350px; /* Largura ideal para ficar compacto */
    margin: 20px auto; /* Centraliza o bloco na página */
    background-color: #1a1d23;
    padding: 15px;
    border-radius: 12px;
    box-sizing: border-box;
}

/* 2. Cabeçalho (Mês e Ano) */
.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* 3. Siglas dos Dias (DOM, SEG...) */
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Divide em 7 colunas iguais */
    width: 100%;
    margin-bottom: 10px;
}

.calendar-days-header div {
    text-align: center;
    font-weight: bold;
    color: #2ecc71;
    font-size: 0.75rem;
}

/* 4. O Grid dos Dias (A MÁGICA ESTÁ AQUI) */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 colunas idênticas às de cima */
    gap: 5px; /* Espaço entre os quadrados */
    width: 100%;
    justify-items: center; /* Centraliza o conteúdo horizontalmente */
}

/* 5. Estilo dos Quadrados */
.calendar-day {
    width: 100%; /* Ocupa a largura total da coluna do grid */
    aspect-ratio: 1 / 1; /* FORÇA ser um quadrado perfeito */
    display: flex;
    align-items: center;    /* Centraliza o número verticalmente */
    justify-content: center; /* Centraliza o número horizontalmente */
    background-color: #252a34;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    border: none;
    transition: background 0.2s;
}

/* 6. Dia Selecionado */
.calendar-day.selected {
    background-color: #3b82f6 !important;
    font-weight: bold;
}

/* 7. Dias Vazios */
.calendar-day.empty {
    background: transparent;
    cursor: default;
}

/* 1. Trava o Grid para nunca perder o formato */
.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important; /* Força 7 colunas iguais sempre */
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* 2. Ajusta o Quadrado do Dia */
.calendar-day {
    aspect-ratio: 1 / 1; /* Mantém sempre quadrado */
    width: 100%;
    position: relative; /* Para posicionar o texto do evento */
    display: flex;
    flex-direction: column; /* Número em cima, texto embaixo */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* IMPEDE que o texto estique o quadrado */
    padding: 2px;
    box-sizing: border-box;
    background-color: #252a34;
}

/* 3. Ajusta o número do dia */
.calendar-day span:first-child {
    font-size: 1rem;
    font-weight: bold;
    z-index: 2;
}

/* 4. Ajusta o texto do EVENTO/FERIADO (Onde está o erro) */
.day-label {
    display: block;
    width: 90%; /* Não deixa encostar nas bordas */
    font-size: 0.55rem; /* Fonte bem pequena para caber */
    text-align: center;
    white-space: nowrap; /* Não deixa quebrar linha */
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona "..." se o nome for muito grande */
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
}

/* Garante que os dias vazios também sigam a regra */
.calendar-day.empty {
    background: transparent;
    pointer-events: none;
}
.weekly-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1a1d23;
    color: white;
}

.weekly-table th, .weekly-table td {
    border: 1px solid #3f4451;
    padding: 8px;
    text-align: center;
}

.weekly-table th {
    background-color: #252a34;
    color: #2ecc71; /* Verde do seu tema */
}

.weekly-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weekly-cell select {
    background: #1a1d23;
    color: #eee;
    border: 1px solid #444;
    padding: 3px;
    font-size: 11px;
    border-radius: 4px;
}
