/* ============================================================
   ESTILOS GERAIS DA PÁGINA
============================================================ */
.page {
    padding: 35px;
    color: #1a1a1a;
    font-family: "Inter", sans-serif;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-subtitle {
    font-size: 15px;
    color: #6b7280;
}

/* ============================================================
   CONTAINER PRINCIPAL
============================================================ */
.agenda-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

@media (max-width: 900px) {
    .agenda-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CALENDÁRIO
============================================================ */
.agenda-calendar {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #ececec;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Cabeçalho do mês */
.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.month-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: capitalize;
}

.nav-btn {
    font-size: 22px;
    padding: 5px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    border: 1px solid #d3d3d3;
    background: #fff;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #f1f5f9;
}

/* Dias da semana */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    color: #6b6f77;
}

/* Grade do calendário */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day {
    background: #fff;
    border: 1px solid #ebebeb;
    padding: 18px;
    min-height: 85px;
    border-radius: 12px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    transition: 0.2s;
}

.day:hover {
    background: #f0f7ff;
    cursor: pointer;
}

.day.empty {
    background: transparent !important;
    border: none !important;
}

/* ============================================================
   SIDEBAR DIREITA
============================================================ */
.agenda-sidebar {
    display: flex;
}

.agenda-card {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    border: 1px solid #ececec;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-align: center;
}

.agenda-icon {
    font-size: 55px;
    margin-bottom: 12px;
}

.agenda-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.agenda-card p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

/* Botão principal */
.btn-primary {
    background: #0f6c7a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #09515d;
}

/* ============================================================
   MODAL
============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 450px;
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 22px;
    font-weight: 700;
}

/* Inputs */
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    margin-bottom: 15px;
    font-size: 15px;
    font-family: inherit;
}

textarea {
    height: 100px;
    resize: none;
}

/* Botões */
.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.cancel-btn {
    background: #e5e7eb;
    color: #111;
    padding: 12px 20px;
    border-radius: 10px;
}

.cancel-btn:hover {
    background: #d1d5db;
}

.save-btn {
    background: #0a7b8c;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
}

.save-btn:hover {
    background: #066a76;
}
