/* TỔNG THỂ KHUNG LỊCH */
#thx-event-calendar { 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* TIÊU ĐỀ & NÚT ĐIỀU HƯỚNG */
.fc .fc-toolbar-title { 
    font-size: 1.4rem !important; 
    font-weight: 700; 
    color: #2d3436; 
}

.fc .fc-button-primary { 
    background-color: #f8f9fa !important; 
    border: 1px solid #e0e0e0 !important; 
    color: #2d3436 !important;
    font-weight: 600;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
}

.fc .fc-button-primary:hover { 
    background-color: #27ae60 !important; 
    color: #fff !important; 
    border-color: #27ae60 !important; 
}

.fc .fc-button-active { 
    background-color: #27ae60 !important; 
    border-color: #27ae60 !important; 
    color: #fff !important; 
    box-shadow: none !important;
}

/* HEADER THỨ (T2, T3...) */
.fc th { 
    padding: 12px 0 !important; 
    background: #fafafa; 
    font-weight: 600; 
    color: #636e72; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    border: none !important; 
}

/* Ô NGÀY & SỐ NGÀY */
.fc-daygrid-day-top { 
    flex-direction: row !important; 
    padding: 8px !important; 
}

.fc-daygrid-day-number { 
    font-weight: 600; 
    color: #b2bec3; 
    text-decoration: none !important; 
    width: 28px; 
    height: 28px; 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    transition: all 0.2s;
}

.fc-day-today .fc-daygrid-day-number { 
    background: #27ae60 !important; 
    color: #fff !important; 
}

.fc-day-today { 
    background-color: rgba(39, 174, 96, 0.03) !important; 
}

/* THẺ SỰ KIỆN (EVENT CARDS) */
.fc-daygrid-event { 
    border-radius: 6px !important; 
    padding: 4px 8px !important; 
    font-size: 0.82rem !important; 
    margin: 2px 5px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.fc-daygrid-event:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 5;
}

.fc-event-title { 
    font-weight: 600 !important; 
}

/* FIX LỖI SCROLLBAR CHE SỐ NGÀY */
.fc .fc-scroller-harness, 
.fc .fc-scroller { 
    overflow: visible !important; 
}

.fc .fc-daygrid-body { 
    width: 100% !important; 
}

.fc-theme-standard td, 
.fc-theme-standard th, 
.fc-theme-standard .fc-scrollgrid { 
    border: 1px solid #f1f2f6 !important; 
}

/* THẺ SỰ KIỆN ĐÓNG (CLOSED EVENTS) */
.fc-daygrid-event.thx-event-closed {
    opacity: 0.5 !important;
    filter: grayscale(100%);
}

.fc-daygrid-event.thx-event-closed:hover {
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}