/* Conteneur principal */
#task-details-container {
    max-width: 1000px;
    margin: 0 auto 30px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.task-title h2 {
    font-size: 1.8em;
    color: #1c3d5a;
    margin: 0;
}

.task-actions-horizontal {
    display: flex;
    gap: 10px;
    align-items: center;
}

.task-action-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.task-action-button i {
    margin-right: 6px;
    font-size: 1em;
}

.btn-editer_tach {
    background: linear-gradient(135deg, #0078d7, #0056a6);
    color: white;
}

.btn-editer_tach:hover {
    background: linear-gradient(135deg, #0056a6, #003d7a);
    transform: translateY(-2px);
}

.btn-cloturer {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.btn-cloturer:hover {
    background: linear-gradient(135deg, #1e7e34, #145523);
    transform: translateY(-2px);
}

.btn-supprimer {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
}

.btn-supprimer:hover {
    background: linear-gradient(135deg, #bd2130, #9e1b25);
    transform: translateY(-2px);
}

/* Styles pour le tableau */
.details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-bottom: 25px;
}

.details-table th {
    width: 200px;
    text-align: left;
    padding: 18px 20px;
    background-color: #f0f9ff;
    color: #1c3d5a;
    border-radius: 10px 0 0 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.details-table td {
    padding: 18px 20px;
    background-color: white;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.td-details-infos {
    line-height: 1.6;
    color: #1c3d5a;
}

/* Styles améliorés pour les priorités */
.haute {
    background: linear-gradient(135deg, #ffebeb, #ffc5c5, #ffadad) !important;
    color: #dc3545 !important;
    font-weight: bold;
    border-left: 4px solid #dc3545 !important;
    position: relative;
}

.haute::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(220, 53, 69, 0.2));
    border-radius: 0 10px 10px 0;
}

.moyenne {
    background: linear-gradient(135deg, #fff8e1, #ffe082, #ffd54f) !important;
    color: #ff8f00 !important;
    font-weight: bold;
    border-left: 4px solid #ffc107 !important;
    position: relative;
}

.moyenne::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(255, 193, 7, 0.2));
    border-radius: 0 10px 10px 0;
}

.basse {
    background: linear-gradient(135deg, #e8f5e9, #a5d6a7, #81c784) !important;
    color: #2e7d32 !important;
    font-weight: bold;
    border-left: 4px solid #28a745 !important;
    position: relative;
}

.basse::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(40, 167, 69, 0.2));
    border-radius: 0 10px 10px 0;
}

/* Styles pour les fichiers */
.page-details-tache-fichiers-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-details-tache-fichiers-liste li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.page-details-tache-fichiers-liste li:hover {
    background-color: #f8fafc;
}

.page-details-tache-fichiers-liste a {
    color: #0078d7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-icon {
    color: #dc3545;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-icon:hover {
    opacity: 1;
}

/* Style pour le formulaire d'upload */
.page-details-tache-upload-form {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.page-details-tache-upload-form label {
    display: block;
    margin-bottom: 10px;
    color: #1c3d5a;
    font-weight: 500;
}

.page-details-tache-upload-form input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px dashed #0078d7;
    border-radius: 5px;
}

.page-details-tache-btn-submit {
    background: linear-gradient(135deg, #0078d7, #0056a6);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-details-tache-btn-submit:hover {
    background: linear-gradient(135deg, #0056a6, #003d7a);
    transform: scale(1.05);
}

/* Styles pour les commentaires */
#comments-container {
    margin-top: 30px;
}

#comments-container h3 {
    font-size: 1.5em;
    color: #1c3d5a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0078d7;
}

.comment {
    background-color: #f8fafc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #0078d7;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #1c3d5a;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
}

#new-comment-form {
    margin-top: 20px;
}

#new-comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    resize: vertical;
}

.new-comment-form-button {
    all: revert;
}

/* Styles pour la nouvelle mise en page */
.task-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #c8dfff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-block {
    grid-column: auto;
}

.task-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-info-item label {
    font-size: 0.8em;
    color: #334155;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content {
    font-size: 0.95em;
    color: #1e3a8a;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85em;
}

.priority-badge i {
    font-size: 12px;
}

.priority-badge.haute {
    background-color: #ffebee;
    color: #d32f2f;
}

.priority-badge.moyenne {
    background-color: #fff3e0;
    color: #f57c00;
}

.priority-badge.basse {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
    color: #334155;
    border-left: 4px solid #2563eb;
    font-size: 0.9em;
    text-shadow: none;
}

.task-description {
    margin: 20px 0 30px;
}

.task-description label {
    display: block;
    font-size: 0.8em;
    color: #b6d5ff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.description-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    color: #1a365d;
    font-size: 0.95em;
}

/* Styles pour les fichiers joints */
.page-details-tache-fichiers-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-details-tache-fichiers-liste li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.page-details-tache-fichiers-liste li:hover {
    background-color: #f0f9ff;
}

.page-details-tache-fichiers-liste a {
    color: #0078d7;
    text-decoration: none;
    font-size: 0.9em;
}

.page-details-tache-fichiers-liste i {
    margin-right: 8px;
}

.delete-icon {
    color: #dc3545;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-icon:hover {
    opacity: 1;
}

/* Annuler les modifications du menu textarea */
.trumbowyg-button-pane {
    background: initial !important;
    border: initial !important;
    box-shadow: initial !important;
}

.trumbowyg-button-pane button {
    color: initial !important;
}

/* Styles pour la nouvelle disposition */
.task-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0 30px;
}

.task-description, .task-attachments {
    margin: 0;
    background: #c8dfff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-description label,
.task-attachments label {
    display: block;
    font-size: 0.8em;
    color: #334155;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.description-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    color: #1e3a8a;
    font-size: 0.95em;
}

.task-attachments .info-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.task-section {
    background-color: #e1eeff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-section.description-section {
    background-color: #cbddf7;
}

.task-section.attachments-section {
    background-color: #cbddf7;
}

.task-section.comments-section {
    background-color: #cbddf7;
}
