/* Calendário institucional — tema azul (FullCalendar v6) */

.agenda-page {
    /* Troca o destaque amarelo do “hoje” por azul suave */
    --fc-today-bg-color: rgba(30, 115, 232, 0.14);
    --fc-highlight-color: rgba(30, 115, 232, 0.18);

    --fc-page-bg-color: #f8fbff;
    --fc-neutral-bg-color: rgba(30, 115, 232, 0.07);
    --fc-neutral-text-color: #5a6b85;
    --fc-border-color: #c5daf4;

    --fc-button-text-color: #fff;
    --fc-button-bg-color: #1e73e8;
    --fc-button-border-color: #1e73e8;
    --fc-button-hover-bg-color: #1666cc;
    --fc-button-hover-border-color: #145ebe;
    --fc-button-active-bg-color: #1258b8;
    --fc-button-active-border-color: #1052ad;

    --fc-event-bg-color: #1e73e8;
    --fc-event-border-color: #155fcc;
    --fc-event-text-color: #fff;

    --fc-more-link-bg-color: #dbe8fc;
    --fc-more-link-text-color: #153a6e;

    --fc-list-event-hover-bg-color: #eef4ff;
}

.agenda-calendar-shell {
    background: linear-gradient(165deg, #f5f9ff 0%, #ffffff 55%);
    border: 1px solid rgba(30, 115, 232, 0.18) !important;
    box-shadow:
        0 12px 40px rgba(15, 55, 120, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}

.agenda-page .fc {
    font-family: inherit;
}

.agenda-page .fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.agenda-page .fc .fc-toolbar-title {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #0f2344;
    letter-spacing: -0.02em;
}

.agenda-page .fc .fc-button {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.4em 0.85em;
    text-transform: none;
    font-size: 0.9rem;
}

.agenda-page .fc .fc-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 115, 232, 0.35);
}

.agenda-page .fc .fc-col-header-cell {
    background: linear-gradient(180deg, #e8f1ff 0%, #dce8fc 100%);
    font-weight: 600;
    color: #1a3a6e;
    padding: 0.65rem 0.25rem;
}

.agenda-page .fc .fc-col-header-cell-cushion {
    color: inherit;
    text-decoration: none;
}

.agenda-page .fc .fc-daygrid-day {
    transition: background-color 0.15s ease;
}

.agenda-page .fc .fc-daygrid-day:hover {
    background-color: rgba(30, 115, 232, 0.04);
}

.agenda-page .fc .fc-daygrid-day-number {
    font-weight: 600;
    color: #2c4a7c;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
}

/* Dia atual: fundo azul claro (variável) + número em pill azul */
.agenda-page .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: #1e73e8;
    color: #fff;
}

.agenda-page .fc .fc-daygrid-event {
    border-radius: 0.35rem;
    font-weight: 600;
    font-size: 0.82rem;
}

.agenda-page .fc .fc-daygrid-event .fc-event-title {
    font-weight: 600;
}

.agenda-page .fc .fc-scrollgrid {
    border-radius: 0.75rem;
}

.agenda-page .fc .fc-scrollgrid-section > td {
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Vista lista */
.agenda-page .fc .fc-list-day-cushion {
    background: linear-gradient(90deg, #e8f1ff 0%, #f0f6ff 100%);
    color: #153a6e;
    font-weight: 700;
}

.agenda-page .fc .fc-list-event:hover td {
    background-color: var(--fc-list-event-hover-bg-color);
}

.agenda-page .fc .fc-list-event-dot {
    border-color: #1e73e8;
}

/* Tooltip dos eventos: permite manter o mouse sobre a janela (Bootstrap usa pointer-events: none por padrão) */
.tooltip.agenda-event-tooltip {
    pointer-events: auto;
}

.tooltip.agenda-event-tooltip .tooltip-inner {
    max-width: min(280px, 92vw);
    text-align: left;
}

.tooltip.agenda-event-tooltip .agenda-tooltip-saiba-mais {
    color: #0d6efd !important;
    margin-top: 0.15rem;
}

.tooltip.agenda-event-tooltip .agenda-tooltip-saiba-mais:hover {
    color: #0a58ca !important;
    text-decoration: underline !important;
}

@media (max-width: 576px) {
    .agenda-page .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .agenda-page .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}
