/* style.css - Agenda Vicentina CCEJ */
:root {
    --primary: #1e3a8a;    /* Azul Escuro */
    --accent: #3b82f6;     /* Azul Claro */
    --success: #10b981;    /* Verde */
    --news-bg: #fff9db;    /* Amarelo Mural */
    --niver-bg: #fdf2f8;   /* Rosa Aniversário */
    --bg: #f1f5f9;         /* Cinza Fundo */
    --text: #1e293b;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 80px 0 30px 0; /* Espaço para o header fixo */
}

/* --- CABEÇALHO --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    width: 90%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- CONTAINERS --- */
.container {
    width: 92%;
    max-width: 480px;
    margin: 0 auto;
}

.admin-box {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* --- MURAL E ANIVERSARIANTES --- */
.news-box {
    background: var(--news-bg);
    border: 2px solid #f59f00;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

details {
    margin-bottom: 15px;
    overflow: hidden;
}

summary {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    outline: none;
}

/* --- CARDS DA AGENDA --- */
.card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* ISSO ALINHA O CHECK À DIREITA */
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, background 0.3s;
}

.date-box {
    border-right: 2px solid var(--accent);
    padding-right: 15px;
    margin-right: 15px;
    min-width: 55px;
    text-align: center;
}

.date-day {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.content-box {
    flex-grow: 1; /* Faz o texto ocupar o centro */
}

.title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 3px;
}

.desc {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- CHECKBOX (BOTÃO DE PRESENÇA) --- */
.check-container {
    padding-left: 10px;
}

.check-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: transparent;
    background: #fff;
    transition: all 0.2s;
}

/* Estado Marcado */
.card.done {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.card.done .check-btn {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* --- FORMULÁRIOS --- */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px; /* Evita zoom automático no iPhone */
}

button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

button:active {
    transform: scale(0.98);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 360px) {
    .date-box { padding-right: 8px; margin-right: 8px; min-width: 45px; }
    .title { font-size: 0.9rem; }
}