/*Đầu Trang*/

/* status-dot.css */

.dot-container {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

.online-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-radius: 50%;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  opacity: 0.6;
  z-index: 1;
  animation: pulse 1.5s infinite ease-out;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.green { background-color: #4caf50; }   /* hôm nay */
.yellow { background-color: #ffeb3b; }  /* hôm qua */
.red { background-color: #f44336; }     /* trước đó */
.dot-user-11 { background-color: #6F42C1; } /* Xà Lượng - tím */
.dot-user-30 { background-color: #17A2B8; } /* Duy Khánh - xanh ngọc */
.dot-user-15 { background-color: #FD7E14; } /* Trung Nghĩa - cam đậm */
.dot-user-25 { background-color: #007BFF; } /* Bá Phú - xanh dương */
.dot-user-16 { background-color: #E83E8C; } /* Văn Nhảy - hồng đậm */
.dot-user-12 { background-color: #6610F2; } /*  Nhật Trường - tím đậm */
.dot-user-29 { background-color: #20C997; } /* Đức Thuận - xanh teal */
.dot-user-13 { background-color: #6C757D; } /* Minh Trí - xám đậm */
.dot-user-28 { background-color: #b4e808; } /* Ngọc Khang - vàng đậm */
.dot-user-76 { background-color: #01080e; } /* Mỹ Phương - xám đậm */
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Cấu trúc chung của header */


/* ✅ Header cố định, nhỏ gọn và không che nội dung */

.header {
    display: flex;
    justify-content: space-between;
    /* Logo bên trái, menu + avatar bên phải */
    align-items: center;
    background-color: #469cf3;
    padding: 5px 10px;
    /* Giảm padding để header nhỏ hơn */
    height: 55px;
    /* Giảm chiều cao */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}


/* ✅ Responsive: Điều chỉnh header trên mobile */

@media (max-width: 768px) {
    .header {
        height: 50px;
        /* Header nhỏ hơn trên điện thoại */
        padding: 5px;
    }
    .logo-container {
        max-width: 100px;
    }
    .menu-avatar {
        gap: 5px;
    }
    .avatar-img {
        width: 30px;
        height: 30px;
    }
   
    .filter-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center; /* Căn giữa các phần tử */
        gap: 15px; /* Khoảng cách giữa các phần tử */
        padding: 10px;
    }
    
    .filter-container label {
        font-weight: bold;
        white-space: nowrap; /* Giữ label không bị xuống dòng */
    }
    
    .filter-container select,
    .filter-container input {
        width: 200px !important; /* Định kích thước đồng đều */
        height: 40px; /* Đảm bảo cùng chiều cao */
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
    
    /* Điều chỉnh để input date có cùng kích thước với select */
    #filter-date {
        padding: 5px;
        text-align: center;
    }
    
}


/* ✅ Đẩy nội dung xuống tránh bị header che */

body {
    padding-top: 55px;
    /* Điều chỉnh theo chiều cao mới của header */
}


/* ✅ Logo giữ nguyên nhưng nhỏ hơn */

.logo-container {
    max-width: 120px;
    /* Giới hạn kích thước logo */
}


/* ✅ Menu và Avatar gom về bên phải */

.menu-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Khoảng cách giữa menu và avatar */
}


/* ✅ Giảm kích thước avatar */

.avatar-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}


/* ✅ Menu nhỏ gọn */

.menu {
    font-size: 14px;
    padding: 5px 10px;
}


/* Căn chỉnh menu và avatar */


/* Giảm kích thước modal */

.small-modal {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


/* Tiêu đề modal */

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}


/* Nút đóng modal */

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

/* Chat */
.chat-wrapper {
    display: flex;
    height: 90vh;
    border: 1px solid #ccc;
}

.chat-sidebar {
    width: 250px;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 15px;
    overflow-y: auto;
}

.chat-main {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 70%;
    display: inline-block;
    background-color: #f1f1f1; /* mặc định */
     max-width: 85vw; /* dùng theo viewport mobile */
    word-break: break-word; /* xử lý cắt từ */
}

/* Tên người gửi */
.chat-author {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
    color: #333;
}
.chat-message.sent {
    background-color: #daf1ff;
    align-self: flex-end;
}

.chat-message.received {
    background-color: #f1f1f1;
    align-self: flex-start;
}

form {
    display: flex;
    flex-direction: column;
}

form textarea {
    width: 100%;
    height: 60px;
    resize: none;
    margin-bottom: 5px;
}

form button {
    align-self: flex-end;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.chat-bubble {
    background-color: #f1f1f1;
    padding: 2px 4px;
    border-radius: 8px;
    display: inline-block;
}

.chat-message.sent .chat-bubble {
    background-color: #daf1ff;
}

.bubble-content {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
.bubble-time {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content-wrapper {
    display: flex;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}
.modal-dialog {
  max-width: 100%; /* hoặc cụ thể như 600px */
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
     max-height: 70vh;  /* thêm dòng này để giới hạn bên trong */
    overflow-y: auto;  /* và cho phép cuộn nếu tràn */
    align-items: stretch;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
}

#image-preview-bar {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}

#thumbnail-container {
    overflow-y: auto;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

#thumbnail-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

#thumbnail-container img.active {
    border-color: #007bff;
}
/* Responsive cho điện thoại chat và modal */
@media (max-width: 768px) {
    .chat-wrapper {
        flex-direction: column;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-main {
        width: 100%;
        padding: 10px;
    }

    .modal-content-wrapper {
        flex-direction: column;
        max-width: 95vw;
    }

    #image-preview-bar {
        flex-direction: row;
        width: 100%;
        margin: 10px 0 0 0;
        justify-content: center;
        gap: 8px;
    }

    #thumbnail-container {
        flex-direction: row;
        max-height: none;
        max-width: 90vw;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
    }

    #thumbnail-container img {
        width: 60px;
        height: 60px;
    }
}

/* Hiển thị danh sách nhân viên dạng lưới */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: #333;
}
.employee-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Khoảng cách giữa các nhân viên */
    justify-content: center;
    /* Căn giữa danh sách */
    padding: 10px;
}


/* Thẻ nhân viên */

.employee-card {
    flex: 1 1 calc(25% - 10px);
    /* Chia 4 cột (25%) với khoảng cách */
    min-width: 150px;
    /* Kích thước tối thiểu */
    text-align: center;
}


/* Nút chọn nhân viên */

.btn-assign {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    white-space: normal;
    /* Cho phép xuống dòng nếu nội dung dài */
}

/* Responsive: nhỏ hơn 768px (tablet & mobile) */
@media (max-width: 768px) {
    .employee-card {
        flex: 1 1 calc(50% - 10px); /* 2 cột */
    }

    .btn-assign {
        font-size: 13px;
        padding: 8px;
    }
}

/* Xuống hàng sau 3 nhân viên */

.clearfix {
    width: 100%;
}

.nav-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

.logo-container {
    margin-right: 15px;
}

.logo-img {
    width: 80px;
    /* Điều chỉnh kích thước nhỏ hơn */
    height: auto;
    /* Giữ tỷ lệ ảnh */
    max-height: 50px;
    /* Giới hạn chiều cao */
}

.dropdown .btn {
    background-color: #333;
    border: none;
}


/* Nút avatar tròn trong header */


/* Nút avatar tròn trong header */

.profile-menu {
    position: relative;
    display: inline-block;
}


/* Button Avatar */

.avatar-button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Avatar hình ảnh */

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}


/* Placeholder nếu không có ảnh */

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background: #6a1b9a;
    /* Màu tím */
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


/* Avatar lớn trong popup */

.avatar-placeholder-large {
    width: 80px;
    height: 80px;
    background: #6a1b9a;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 10px;
}


/* Popup Profile */

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 250px;
    z-index: 1000;
    padding: 10px;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}


/* Khi mở popup */

.profile-dropdown.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}


/* Hiệu ứng khi hover vào avatar */

.avatar-button:hover .avatar-small {
    transform: scale(1.1);
}


/*Đầu Trang*/


/* Nội dung chính */


/* Bố cục chính */

.main-layout {
    width: 90%;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(228, 226, 226, 0.911);
}


/* Nút tạo nhân viên */

.top-actions {
    text-align: right;
    margin-bottom: 15px;
}


/* Bộ lọc */

.filter-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    align-items: center;
}
.filter-container label {
    font-weight: bold;
    white-space: nowrap; /* Giữ label không bị xuống dòng */
}


/* Danh sách nhân viên */

.employee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* Mỗi nhân viên */


/* Định dạng thẻ nhân viên */

.employee-item {
    display: flex;
    flex-direction: column;
    /* Căn dọc tất cả các phần tử */
    background: white !important;
    /* Đảm bảo nền trắng */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 10px;
}


/* Thông tin nhân viên */

.employee-details {
    padding: 10px;
    background: white;
    /* Nền trắng */
    border-radius: 8px;
    margin-bottom: 10px;
}


/* Định dạng danh sách nút */

.employee-actions {
    display: flex;
    flex-direction: column;
    /* Căn các nút theo chiều dọc */
    gap: 5px;
    width: 150px;
}


/* Định dạng các nút */

.btn {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    width: 100%;
    /* Đảm bảo nút có cùng kích thước */
}


/* Định dạng riêng cho từng nút */

.btn-warning {
    background-color: #ffc107;
    color: black;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.button-group {
    display: flex;
    justify-content: center;
    /* Canh giữa */
    gap: 15px;
    /* Khoảng cách giữa các nút */
    margin-top: 20px;
}

.button-group .btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    /* Bỏ gạch chân */
    font-weight: bold;
}


/* Màu sắc nút */

.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}


/* Hover hiệu ứng */

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary:hover {
    background-color: #5a6268;
}


/* Hiệu ứng hover */

.btn:hover {
    opacity: 0.8;
}

.employee-item:hover {
    transform: translateY(-3px);
}


/* Avatar */

.employee-avatar {
    flex: 0 0 60px;
}

.employee-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: #6a1b9a;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.task-table {
    max-width: 1000px;
    margin: 80px auto 20px auto;
    /* Đẩy nội dung xuống tránh bị header che */
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
    /* Giữ chiều rộng cột đồng đều */
}

.status-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1s infinite alternate;
}

.green {
    background-color: #28a745;
}

.yellow {
    background-color: #ffc107;
}

.red {
    background-color: #dc3545;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: bold;
    color: white;
}

.status-badge[data-status="not_started"] {
    background-color: red;
}

.status-badge[data-status="in_progress"] {
    background-color: orange;
}

.status-badge[data-status="completed"] {
    background-color: green;
}


/* Cải thiện giao diện cho thời gian còn lại */

.time-left {
    font-weight: bold;
    color: #ff5733;
}


/* Thông tin nhân viên */

.employee-info-list {
    background: rgb(248, 248, 248);
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
}

.employee-info p {
    margin: 2px 0;
}


/* Hành động */

.employee-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
}

.container-task-board {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box; /* Ngăn padding làm tăng kích thước */
    justify-content: center;
    max-width: 100%;
    width: 100%; /* Đảm bảo container không mở rộng */
    overflow-x: hidden; /* Ngăn tràn ngang */
    position: relative; /* Đề phòng lỗi do position */
}

.wrapper {
    min-height: 100vh;
    /* Đảm bảo nội dung luôn đủ cao */
    display: flex;
    flex-direction: column;
}

html,
body {
    height: 100%;
    width: 100%;
    /* Đảm bảo trang web có chiều cao đầy đủ */
}
#prevImage, #nextImage {
    opacity: 0.7;
}
#prevImage:hover, #nextImage:hover {
    opacity: 1;
}
.task-zone {
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 15px;
    
    /* Chia 2 cột */
    width: 100%; /* Đảm bảo full chiều ngang container khi màn nhỏ */
    max-width: 100%; /* Giới hạn để không quá rộng */
    text-align: left; /* Đảm bảo nội dung không bị căn giữa nếu không cần */
}

.task-region-title {
    font-size: 25px;
    color: #0077ff;
    font-weight: bold;
    margin-bottom: 10px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    background: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.task-item:hover {
    background: #e3e3e3;
}

.task-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.task-footer {
    display: flex;
    justify-content: flex-end;
    /* Đẩy toàn bộ nội dung về bên phải */
    align-items: center;
    /* Căn giữa theo chiều dọc */
    gap: 10px;
    /* Khoảng cách giữa các nút */
    padding: 5px 10px;
}


/* Định dạng trạng thái công việc */

.task-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 80px;
    /* Đảm bảo kích thước đồng đều */
    text-align: center;
}

.completed {
    background-color: #28a745;
    /* Xanh lá */
    color: white;
}

.in-progress {
    background-color: #ffc107;
    /* Vàng */
    color: black;
}

.urgent {
    background-color: #dc3545;
    /* Đỏ */
    color: white;
}

.not-completed {
    background-color: #6c757d;
    /* Xám */
    color: white;
}

#customer_results {
    position: absolute;
    top: calc(100% + 5px);
    /* ✅ Cách input 5px */
    left: 0;
    width: 100%;
    /* ✅ Giữ đúng kích thước theo input */
    max-width: 400px;
    /* ✅ Đảm bảo không bị kéo dài toàn bộ form */
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: white;
    z-index: 1050;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.customer-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.customer-item:hover {
    background-color: #f1f1f1;
}


/* Định dạng nút "Chi Tiết" */

.btn-details {
    padding: 5px 10px;
    font-size: 14px;
    white-space: nowrap;
    /* Đảm bảo không bị xuống dòng */
}

.task-nut-container {
    display: flex;
    flex-direction: column;
    /* Chia các phần tử theo chiều dọc */
    align-items: center;
    /* Căn giữa các nút */
    margin-top: 30px;
    /* Tạo khoảng cách giữa nội dung và nút */
}

.task-nut {
    display: flex;
    justify-content: center;
    /* Căn giữa các nút theo chiều ngang */
    gap: 30px;
    /* Khoảng cách giữa các nút */
    width: 100%;
    /* Đảm bảo các nút căn theo chiều rộng */
}

.task-row {
    display: flex;
    justify-content: space-between;
    /* Canh đều 2 bên */
    background: #ffffff;
    /* Nền xám nhẹ */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    flex-direction: column;
    /* Bố trí theo chiều dọc */
    margin-bottom: 5px;
    /* Khoảng cách giữa các dòng */
}

.task-label {
    font-weight: bold;
    color: #333;
}

.task-value {
    margin-left: 15px;
    /* Thụt vào một chút để dễ nhìn */
    color: #555;
}

.task-row span:first-child {
    font-weight: bold;
    min-width: 120px;
    /* Đảm bảo nhãn không bị co */
}


/* Responsive: Khi màn hình nhỏ, hiển thị 1 cột */

@media (max-width: 768px) {
    .container-task-board {
        flex-direction: column; /* Sắp xếp theo cột khi màn hình nhỏ */
        align-items: left; /* Căn giữa task */
        padding-bottom: 50px; /* Giảm padding để tránh khoảng trống thừa */
    }
    .task-zone {
        flex: 1 1 100%;
        flex: none; /* Ngăn flex tự động điều chỉnh */
    }
}


/* ✅ Định dạng phần nội dung chính */

.content {
    background-color: #5DADE2;
    /* Màu xanh nhạt */
    color: white;
    padding: 20px;
    width: 100%;
    min-height: 400px;
    padding-bottom: 70px;
    /* Tạo khoảng trống trước footer */
    margin-top: 60px;
    /* Đẩy nội dung xuống tránh header che mất */
}

.dashboard-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
}

.dashboard-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #333;
}


/* Ẩn dashboard trên điện thoại */

@media (max-width: 768px) {
    .dashboard-container {
        display: none;
    }
}

.form-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: auto;
    margin-bottom: 150px;
    position: relative;
    /* ✅ Đảm bảo các phần tử con có thể căn chỉnh đúng */
}

.form-group {
    margin-bottom: 10px;
    /* ✅ Giữ khoảng cách giữa các input */
}

.form-group label {
    font-weight: bold;
    /* ✅ Giữ nhãn nổi bật hơn */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    /* ✅ Đảm bảo input mở rộng đúng form */
}

label {
    font-weight: bold;
    display: block;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.pagination {
    margin: 0;
}

.page-link {
    color: #007bff;
    font-weight: bold;
}

.page-link:hover {
    background-color: #007bff;
    color: white;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border: none;
}

h1 {
    text-align: center;
    color: #fff;
    background-color: #007bff;
    padding: 15px;
    border-radius: 8px;
}

.task-item {
    border-bottom: 1px solid #ddd;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.task-item:hover {
    background-color: #f9f9f9;
}


.hidden {
    display: none !important;  /* Chắc chắn bị ẩn */
}

#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: none; /* ✅ Ẩn mặc định */
    align-items: center;
    gap: 10px;
    z-index: 9999; /* ✅ Đảm bảo hiển thị trên cùng */
}


/* Nút đóng */
#notification button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.task-title {
    font-weight: bold;
    color: #28a745;
    /* Màu xanh */
    font-size: 16px;
    /* Kích thước chữ vừa phải */
    white-space: normal;
    /* Cho phép xuống dòng nếu quá dài */
    word-wrap: break-word;
    /* Xuống dòng khi gặp ký tự dài */
    overflow-wrap: break-word;
    /* Đảm bảo không tràn khỏi vùng chứa */
    display: block;
    /* Hiển thị toàn bộ tiêu đề trên 1 dòng riêng */
    margin-bottom: 5px;
    /* Tạo khoảng cách giữa tiêu đề và nội dung bên dưới */
}

.task-date {
    color: #888;
    font-size: 12px;
}

.back-to-dashboard {
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #28a745;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.back-to-dashboard:hover {
    background: #218838;
}


/* Nội dung chính */


/*Profile*/


/* Task Board */

.task-board {
    background-color: #fff;
    color: black;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.task-board h2 {
    color: #333;
}


/* Danh sách công việc */

#task-list {
    list-style-type: none;
    padding: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}


/* Nút công việc */

.task-btn {
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.in-progress {
    background-color: #f39c12;
    /* Màu cam */
    color: white;
}

.not-completed {
    background-color: #e74c3c;
    /* Màu đỏ */
    color: white;
}

.task-btn:hover {
    opacity: 0.8;
}


/* Nút Lịch sử công việc */

.task-history-container {
    margin-top: 20px;
    text-align: center;
}

.history-btn {
    display: inline-block;
    background-color: #3498db;
    /* Màu xanh */
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.history-btn:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .content {
        width: 100%;
        padding: 15px;
        min-height: calc(100vh - 60px);
        /* Chiều cao tự động, tránh bị hụt nội dung */
        text-align: center;
        /* Căn giữa nội dung nếu cần */
    }
}


/*Profile*/


/*Siderbar*/

.sidebar-nhanvien {
    background-color: #2C3E50;
    /* Màu xanh đậm */
    color: white;
    padding: 20px;
    width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 3px solid #34495E;
}


/* Thẻ thông tin cá nhân */

.profile-card {
    text-align: center;
    width: 100%;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 15px;
}


/* Thông tin nhân viên */

.employee-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: black !important;
    /* Đảm bảo chữ luôn có màu đen */
    text-align: center;
    /* Canh giữa */
}

.employee-position {
    font-size: 16px;
    color: #222222;
    margin-bottom: 15px;
}

.employee-info {
    background: rgb(65, 63, 63);
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
}

.employee-info p {
    margin: 5px 0;
    font-size: 14px;
}


/* Nút chỉnh sửa hồ sơ */

.btn-edit {
    display: block;
    background-color: #2980B9;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    margin: 10px 0;
}

.btn-edit:hover {
    background-color: #3498DB;
}


/* Nút đăng xuất */

.logout-form {
    margin-top: 20px;
    width: 100%;
}

.btn-logout {
    background-color: #E74C3C;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
}

.btn-logout:hover {
    background-color: #C0392B;
}


/* Responsive: Khi màn hình nhỏ hơn 768px, thu nhỏ sidebar */

@media (max-width: 768px) {
    .sidebar-nhanvien {
        width: 100%;
        min-height: auto;
        padding: 15px;
        border-right: none;
    }
    .employee-info {
        text-align: center;
    }
    .btn-logout {
        width: auto;
        padding: 8px 10px;
    }
}


/*Siderbar*/


/*Chân trang*/

.footer {
    background-color: #2D5C88;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .footer {
        padding: 15px;
        /* Giữ khoảng cách hợp lý */
        font-size: 14px;
        /* Nhỏ hơn cho phù hợp với điện thoại */
    }
}


/*Chân trang*/

.error-message {
    color: red;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* Trạng thái mặc định */
.form-control {
    border: 2px solid lightgray;
    padding: 8px;
    width: 100%;
    outline: none;
    transition: border 0.3s ease-in-out;
}

/* Khi nhập đủ thông tin (Màu xanh lá) */
.valid-input {
    border: 2px solid green !important;
}

/* Khi nhập sai hoặc bỏ trống (Màu đỏ) */
.invalid-input {
    border: 2px solid red !important;
}