/* Style cho trang admin */
.dtr-add-task-form p {
    margin-bottom: 15px;
}
.dtr-add-task-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.dtr-add-task-form input[type="text"],
.dtr-add-task-form input[type="number"] {
    width: 100%;
    max-width: 500px; /* Điều chỉnh chiều rộng để dễ nhìn hơn */
}
.dtr-add-task-form .description {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}
#dtr-tasks-list table {
    margin-top: 20px;
}
#dtr-tasks-list td {
    vertical-align: middle;
}

/* Style cho Modal Sửa Nhiệm vụ */
#dtr-edit-task-modal {
    /* Đảm bảo display: none; được thiết lập trong HTML ban đầu */
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước */
    overflow-y: auto; /* Cho phép cuộn nếu nội dung dài */
    max-height: 90vh; /* Giới hạn chiều cao của modal */
}

#dtr-modal-overlay {
    /* Đảm bảo display: none; được thiết lập trong HTML ban đầu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px); /* Hiệu ứng làm mờ nền */
}

#dtr-edit-task-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
}

#dtr-edit-task-form p {
    margin-bottom: 15px;
}
#dtr-edit-task-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#dtr-edit-task-form input[type="text"],
#dtr-edit-task-form input[type="number"] {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

#dtr-edit-task-form .button-primary {
    margin-right: 10px;
}

/* Style cho trạng thái nhiệm vụ */
.task-status span {
    font-weight: bold;
}
.task-status span[style*="green"] { /* Đảm bảo màu xanh */
    color: #28a745 !important;
}
.task-status span[style*="red"] { /* Đảm bảo màu đỏ */
    color: #dc3545 !important;
}
/* Style cho cột tình trạng hoàn thành */
.task-completion-status span {
    font-weight: bold;
}
.task-completion-status span[style*="orange"] {
    color: #ff9800 !important;
}
.task-completion-status span[style*="blue"] {
    color: #007bff !important;
}
.task-completion-status span[style*="purple"] {
    color: #6f42c1 !important;
}


/* Khoảng cách giữa các nút hành động */
#dtr-tasks-list td button {
    margin-right: 5px;
}

/* Style cho wrapper nội dung nhiệm vụ trên frontend */
.dtr-task-content-wrapper {
    border: 1px dashed #ccc;
    padding: 15px;
    margin-top: 20px;
    background-color: #f9f9f9;
}
.dtr-task-content-wrapper h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}
.dtr-task-content-wrapper p {
    margin-bottom: 10px;
}
.dtr-task-content-wrapper ol, .dtr-task-content-wrapper ul {
    margin-left: 25px;
    margin-bottom: 10px;
}
.dtr-task-content-wrapper li {
    margin-bottom: 5px;
}

/* Đảm bảo hình ảnh trong nội dung nhiệm vụ phản hồi tốt */
.dtr-task-content-wrapper img {
    max-width: 100%;
    height: auto;
    display: block; /* Loại bỏ khoảng trống dưới ảnh */
    margin: 10px 0; /* Khoảng cách trên dưới ảnh */
    border: 1px solid #eee; /* Đường viền nhẹ cho ảnh */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
}
/* Style cho khu vực xác minh */
.dtr-verification-area {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #007bff;
    background-color: #e7f3ff;
    border-radius: 5px;
    text-align: center;
}
.dtr-verification-area input[type="text"] {
    text-align: center;
    font-size: 1.2em;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #007bff;
}
.dtr-verification-area button {
    max-width: 150px !important;
    max-height: 40px !important;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 5px;
}
#dtr-verification-message {
    font-size: 1.1em;
    margin-top: 15px;
}