/* =============================================================
   calendar_public.css - Tema KTD Profesional
   ============================================================= */

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f8;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1100px;
}

/* =============================================================
   MAIN CARD
   ============================================================= */
.main-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 40px 50px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin: 0 auto;
}

/* =============================================================
   BACK BUTTON
   ============================================================= */
.btn-back {
    display: inline-flex;
    align-items: center;
    background: #f0f2ff;
    color: #6366f1;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-back:hover {
    background: #6366f1;
    color: white;
    transform: translateX(-5px);
}

/* =============================================================
   ICON HEADER
   ============================================================= */
.icon-header {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f2ff;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 15px;
}

/* =============================================================
   CALENDAR BOX
   ============================================================= */
.calendar-box {
    background: #fafbff;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #eef0f7;
}

/* =============================================================
   CALENDAR CONTROLS
   ============================================================= */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-controls h4 {
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.btn-nav {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 14px;
    color: #6366f1;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.btn-nav:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.btn-today {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.btn-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* =============================================================
   CALENDAR TABLE
   ============================================================= */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
}

.calendar-table th {
    text-align: center;
    padding: 10px 5px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 13px;
}

.calendar-table td {
    text-align: center;
    padding: 16px 5px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: 500;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    position: relative;
}

.calendar-table td:hover:not(.other-month) {
    background: #f0f2ff;
    transform: scale(1.02);
    border-color: #6366f1;
}

.calendar-table td.other-month {
    color: #d1d5db;
    background: transparent;
    box-shadow: none;
    border: none;
    cursor: default;
}

.calendar-table td.other-month:hover {
    transform: none;
    background: transparent;
}

.calendar-table td.has-event {
    border: 2px solid #6366f1;
}

.calendar-table td.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
}

.calendar-table td.today {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.calendar-table td.today::after {
    background: white;
}

.calendar-table td.active {
    background: #1e1b4b;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 27, 75, 0.3);
    border: none;
}

.calendar-table td.active::after {
    background: white;
}

/* =============================================================
   STATUS BADGES - PURPLE THEME (Light, Dark, Darker)
   ============================================================= */

/* UPCOMING - Light Purple */
.badge-upcoming {
    background: #ede9fe;
    color: #6d28d9;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* TODAY - Medium/Dark Purple */
.badge-today {
    background: #6366f1;
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* PAST - Darkest Purple */
.badge-past {
    background: #1e1b4b;
    color: #c7c2d9;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* =============================================================
   EVENT GRID CARDS
   ============================================================= */
.event-card {
    background: #fafbff;
    border-radius: 16px;
    border-left: 6px solid #6366f1;
    transition: 0.3s;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.event-card-body {
    padding: 20px;
}

.event-title {
    font-size: 16px;
    color: #1a1a2e;
}

.event-meta {
    font-size: 13px;
    color: #6b7280;
}

.event-meta div {
    margin-bottom: 4px;
}

.event-meta i {
    color: #6366f1;
    width: 18px;
}

.event-desc {
    font-size: 13px;
    color: #4b5563;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #eef0f7;
}

/* Event Card Status Colors - Matching Badges */
.past-event {
    border-left-color: #1e1b4b;
    opacity: 0.85;
    background: #f8f7fa;
}

.today-event {
    border-left-color: #6366f1;
    background: #f0f2ff;
}

.upcoming-event {
    border-left-color: #8b5cf6;
    background: #faf8ff;
}

/* =============================================================
   NO EVENT
   ============================================================= */
.no-event {
    text-align: center;
    color: #9ca3af;
    padding: 30px 20px;
}

.no-event i {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
    color: #d1d5db;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 992px) {
    .main-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .main-card {
        padding: 20px;
        border-radius: 24px;
    }
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .calendar-controls .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    .calendar-controls h4 {
        font-size: 18px;
        text-align: center;
    }
    .calendar-table th {
        font-size: 11px;
        padding: 6px 3px;
    }
    .calendar-table td {
        font-size: 12px;
        padding: 10px 3px;
    }
    .event-card {
        margin-bottom: 12px;
    }
    .badge-upcoming,
    .badge-today,
    .badge-past {
        font-size: 10px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 15px;
        border-radius: 20px;
    }
    .calendar-table th {
        font-size: 9px;
        padding: 4px 2px;
    }
    .calendar-table td {
        font-size: 10px;
        padding: 6px 2px;
    }
    .badge-upcoming,
    .badge-today,
    .badge-past {
        font-size: 9px;
        padding: 2px 8px;
    }
}