/* ==========================================================================
   Agenda Guest Pages - Calendar + Card Style
   ========================================================================== */

.agenda-section { background: #f8fafc; min-height: 60vh; }

/* ---- FullCalendar wrapper ---- */
.agenda-calendar-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(13,27,62,0.08);
    border: 1px solid rgba(13,27,62,0.05);
    padding: 28px;
    overflow: hidden;
}

/* Skin the calendar */
.fc .fc-toolbar-title { font-family: 'Quicksand', sans-serif; font-weight: 800; color: #0c152b; font-size: 1.2rem; }
.fc .fc-button-primary { background: #1e3a8a !important; border-color: #1e3a8a !important; border-radius: 8px !important; font-size: 0.82rem !important; font-weight: 600 !important; }
.fc .fc-button-primary:hover { background: #0d1b3e !important; border-color: #0d1b3e !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: #0d1b3e !important; }
.fc .fc-daygrid-day-number { font-weight: 700; color: #374151; font-size: 0.85rem; }
.fc .fc-day-today { background: rgba(30,58,138,0.05) !important; }
.fc .fc-event { border-radius: 5px !important; font-size: 0.78rem !important; font-weight: 600 !important; padding: 2px 6px !important; border: none !important; cursor: pointer; }
.fc .fc-event-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc .fc-event--upcoming  { background: #1e3a8a !important; }
.fc .fc-event--ongoing   { background: #059669 !important; }
.fc .fc-event--completed { background: #64748b !important; }
.fc .fc-col-header-cell-cushion { font-weight: 700; color: #0c152b; font-size: 0.82rem; }

/* ---- Sidebar ---- */
.agenda-sidebar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(13,27,62,0.08);
    border: 1px solid rgba(13,27,62,0.05);
    overflow: hidden;
}

.agenda-sidebar__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1e3a8a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif;
}
.agenda-sidebar__header--gray {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}
.agenda-sidebar__header i { font-size: 1.1rem; }

.agenda-sidebar__body { padding: 10px 0; max-height: 420px; overflow-y: auto; }
.agenda-sidebar__body::-webkit-scrollbar { width: 4px; }
.agenda-sidebar__body::-webkit-scrollbar-thumb { background: rgba(13,27,62,0.15); border-radius: 4px; }

.agenda-sidebar__footer { padding: 14px 22px; border-top: 1px solid rgba(13,27,62,0.07); }

.agenda-view-all-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-weight: 700; color: #1e3a8a !important;
    text-decoration: none !important; text-transform: uppercase; letter-spacing: 0.8px;
    transition: gap 0.2s;
}
.agenda-view-all-btn:hover { gap: 14px; }

/* ---- Mini Card ---- */
.agenda-card-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(13,27,62,0.05);
    text-decoration: none !important;
    transition: background 0.2s;
}
.agenda-card-mini:last-child { border-bottom: none; }
.agenda-card-mini:hover { background: rgba(13,27,62,0.025); }
.agenda-card-mini--active { background: rgba(30,58,138,0.05); }

.agenda-card-mini__date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0d1b3e 0%, #1e3a8a 100%);
    text-align: center;
}
.agenda-card-mini__date--done {
    background: linear-gradient(145deg, #475569 0%, #64748b 100%);
}
.agenda-card-mini__day { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1; font-family: 'Quicksand', sans-serif; }
.agenda-card-mini__month { display: block; font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

.agenda-card-mini__body { flex: 1; min-width: 0; }
.agenda-card-mini__title { font-size: 0.85rem; font-weight: 700; color: #0c152b; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-card-mini__loc { font-size: 0.75rem; color: #64748b; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Status Badges ---- */
.agenda-card-mini__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 20px;
    margin-top: 5px;
}
.agenda-badge--upcoming  { background: rgba(30,58,138,0.1); color: #1e3a8a; border: 1px solid rgba(30,58,138,0.2); }
.agenda-badge--ongoing   { background: rgba(5,150,105,0.1); color: #059669; border: 1px solid rgba(5,150,105,0.2); }
.agenda-badge--completed { background: rgba(100,116,139,0.1); color: #475569; border: 1px solid rgba(100,116,139,0.2); }

/* ---- Empty ---- */
.agenda-empty-small { text-align: center; padding: 30px 20px; color: #94a3b8; }
.agenda-empty-small i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.4; }
.agenda-empty-small p { font-size: 0.85rem; margin: 0; }

/* ---- Detail Card ---- */
.agenda-detail-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(13,27,62,0.08);
    border: 1px solid rgba(13,27,62,0.05);
    overflow: hidden;
}
.agenda-detail-card__hero { width: 100%; max-height: none; height: auto; display: block; }
.agenda-detail-card__body { padding: 36px 40px; }
.agenda-detail-card__meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(13,27,62,0.08);
}
.agenda-detail-card__meta-row .agenda-card-mini__badge {
    margin-top: 0;
}
.agenda-detail-card__date-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}
.agenda-detail-card__date-meta i {
    font-size: 1rem;
    color: #1e3a8a !important;
}
.agenda-detail-card__title { font-family: 'Quicksand', sans-serif; font-size: 1.75rem; font-weight: 800; color: #0c152b; margin-bottom: 16px; line-height: 1.35; }
.agenda-detail-card__location {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(13,27,62,0.04); border: 1px solid rgba(13,27,62,0.08);
    padding: 8px 18px; border-radius: 30px;
    font-size: 0.9rem; color: #374151; font-weight: 600;
    margin-bottom: 24px;
}
.agenda-detail-card__location i { color: #1e3a8a; }
.agenda-detail-card__content { font-size: 1rem; line-height: 1.8; color: #374151; }
.agenda-detail-card__content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }

/* ---- Attachment Section ---- */
.agenda-attachment-section {
    margin-top: 30px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid rgba(30, 58, 138, 0.08);
    border-radius: 16px;
}
.agenda-attachment-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0c152b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.agenda-attachment-title i {
    color: #1e3a8a;
}
.agenda-attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.agenda-attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid rgba(13, 27, 62, 0.05);
    border-radius: 12px;
    transition: all 0.25s ease;
}
.agenda-attachment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.06);
    border-color: rgba(30, 58, 138, 0.15);
}
.agenda-attachment-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.agenda-attachment-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(30, 58, 138, 0.06);
    color: #1e3a8a;
    border-radius: 10px;
    font-size: 1.2rem;
}
.agenda-attachment-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}
.agenda-attachment-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 1px;
}
.agenda-attachment-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #1e3a8a;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s;
}
.agenda-attachment-btn:hover {
    background: #0d1b3e;
}

.agenda-detail-card__footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(13,27,62,0.07); }

@media (max-width: 991px) {
    .agenda-calendar-wrap { padding: 16px; }
    .agenda-detail-card__body { padding: 24px 20px; }
    .agenda-detail-card__title { font-size: 1.35rem; }
    .agenda-attachment-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .agenda-attachment-btn { width: 100%; justify-content: center; }
}
