/* ==========================================================================
   ACADEMIC CALENDAR PAGE STYLES - CHALTAKHALI R.G.B.C. INSTITUTION
   ========================================================================== */

.calendar-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #6b21a8 50%, #86198f 100%);
    color: #ffffff;
    border-bottom: 4px solid #d946ef;
}

.month-tab-btn {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cat-pill-btn {
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cat-pill-btn:hover {
    transform: translateY(-1px);
}

/* Event Cards Layout & Spacing */
.calendar-event-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    border-left: 6px solid #0284c7;
    padding: 1.35rem 1.4rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.calendar-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.calendar-event-card.is-holiday {
    border-left-color: #dc2626;
    background-color: #fffafb;
}

.calendar-event-card.cat-exam {
    border-left-color: #d97706;
}

.calendar-event-card.cat-cultural {
    border-left-color: #16a34a;
}

.calendar-event-card.cat-ptm {
    border-left-color: #7c3aed;
}

.calendar-event-card.cat-meeting {
    border-left-color: #475569;
}

.calendar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.calendar-badge-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.calendar-event-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.42;
    margin-bottom: 0.65rem;
}

.calendar-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.calendar-event-desc {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: auto;
}

.calendar-hero-stat {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    color: #ffffff;
}

@media print {
    .calendar-hero,
    .navbar,
    footer,
    .no-print {
        display: none !important;
    }
    .calendar-event-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        padding: 1rem !important;
    }
}
