/* style.css - GovTech Enterprise Responsive */

/* 1. CẤU HÌNH CHUNG */
body {
    background-color: #f4f6f9;
    color: #333;
    margin: 0 auto;
}


/* 2. HEADER CHUẨN CHÍNH TRỊ */
.header-gov {
    background: linear-gradient(135deg, #d71920 0%, #b3141a 100%);
    color: #ffeb3b;
    padding: 15px 0;
    width: 100%;
    border-bottom: 4px solid #ffeb3b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header-title {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.header-subtitle {
    font-size: 0.9rem;
    color: #fff;
    font-style: italic;
}

/* 3. FULLCALENDAR TÙY BIẾN */
/* Thanh công cụ lịch */
.fc-header-toolbar {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
    gap: 10px;
}
.dept-badge .badge {
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Hiệu ứng cho icon đính kèm */
.fa-paperclip {
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 0.9rem;
}
.fa-paperclip:hover {
    color: #0d6efd;
    transform: scale(1.3);
}
/* Nút bấm trong lịch */
.fc-button-primary {
    background-color: #d71920 !important;
    border-color: #d71920 !important;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem !important;
}
.fc-button-active {
    background-color: #b3141a !important;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2) !important;
}

/* Giao diện Desktop: Header ngày tháng màu đỏ */
.fc-col-header-cell {
    background-color: #d71920;
    color: white;
    padding: 10px 0;
    text-transform: uppercase;
}
.fc-col-header-cell a {
    color: white !important;
    text-decoration: none;
}
.event-content {
    text-align: justify;
}
/* Sự kiện (Event) */
.fc-event {
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 2px 4px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    border: none;
}
.fc-day-today {
    background-color: #fff8e1 !important; /* Màu vàng nhạt cho ngày hiện tại */
}


.custom-day-header {
    display: flex;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

/* 4. RESPONSIVE MOBILE (QUAN TRỌNG) */
@media (max-width: 402px) {
    h1.header-title {font-size: 1.3rem !important;}
}
@media (max-width: 768px) {
    /* Header nhỏ lại */
    .header-title { font-size: 1.1rem; }
    .header-subtitle { font-size: 0.8rem; display: none; } /* Ẩn slogan cho gọn */
    
    /* Toolbar lịch: Gom gọn lại */
    .fc-header-toolbar {
        display: flex;
        justify-content: center;
    }
    .fc-toolbar-chunk {
        margin-bottom: 5px;
    }
    .fc-toolbar-title {
        font-size: 1.2rem !important;
    }

    /* Form lọc: Xếp chồng dọc */
    .filter-form .col-md-2, .filter-form .col-md-3 {
        width: 100%;
        margin-bottom: 10px;
    }
    .btn-responsive-group {
        display: flex;
        gap: 5px;
    }
    .btn-responsive-group .btn {
        flex: 1;
        font-size: 0.8rem;
    }

    /* Tùy biến List View (Giao diện thẻ bài trên mobile) */
    .fc-list-event {
        background-color: white !important;
        cursor: pointer;
    }
    .fc-list-event:hover td {
        background-color: #f8f9fa;
    }
    .fc-list-day-cushion {
        background-color: #fbecec !important; /* Nền ngày màu hồng nhạt */
    }
    .fc-list-day-text, .fc-list-day-side-text {
        color: #d71920 !important;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 1.1rem;
    }
    
    /* Làm sự kiện giống cái thẻ (Card) */
    .fc-list-event-dot { border-width: 5px !important; }
    .fc-list-event-title {
        font-weight: bold;
        color: #333;
        white-space: normal !important; /* Cho phép xuống dòng */
    }
}