.session-column {
    height: 100%;
    margin-bottom: 20px;
}

.session-column .card-body {
    max-height: 500px;
    overflow-y: auto;
}

#session-report {
    resize: vertical;
    min-height: 200px;
}

.form-check {
    padding-left: 1.5rem;
}

.list-group-item a {
    color: #007bff;
    text-decoration: none;
}

.list-group-item a:hover {
    text-decoration: underline;
}

#checklist-container .form-check-input:checked + .form-check-label {
    text-decoration: line-through;
    color: #6c757d;
}

/* Nouvelle CSS pour la disposition en grille */
.session-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .session-grid {
        grid-template-columns: 1fr;
    }
}

.session-column .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.session-column .card-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

#home-container .session-tasks,
#home-container .session-report,
#home-container .session-new-items {
    min-height: 450px;
}

/* Style pour la liste des tâches de session */
#sessionTasksList {
    display: block;
    flex-direction: column;
    gap: 8px;
    padding: 0px;
}

.task-item {
    position: relative;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 1rem;
    font-size: 1em;
    padding-left: 35px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
}

.task-item:hover {
    background-color: #f0f7ff;
    transform: translateX(2px);
}

#sessionTasksList .new-task {
    display: none;
}

.task-item .task-checkbox {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.task-item label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85em;
    word-break: break-word;
    flex: 1;
    padding-right: 5px;
}

.task-item:has(.task-checkbox:checked) {
    background-color: #e9ecef;
    border-left-color: #6c757d;
    text-decoration: line-through;
    color: #6c757d;
    opacity: 0.8;
}

.task-item .task-link {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
}

.task-item .task-link:hover {
    text-decoration: underline;
}

.task-item .task-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-top: 3px;
}

/* Ajout d'un style pour le titre de la section */
#session-column .card-header {
    background-color: #f0f7ff;
    border-bottom: 1px solid #d8e4f8;
}

/* Style pour la nouvelle tâche */
.new-task {
    margin-top: 10px;
    border-top: 1px dashed #dee2e6;
    padding-top: 10px;
}

.new-task input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.new-task input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Style pour le bouton de fermeture de session */
.session-actions {
    margin-top: 20px;
}

#close-session-btn {
    width: 100%;
    display: block;
    margin-left: 0;
    margin-right: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color:white;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    background-color: #dc3545;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.2);
}

#close-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#close-session-btn:active {
    transform: translateY(1px);
}

#close-session-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#save-btn {
    margin-left: 5px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style pour le modal de rapport de session */
.session-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.session-info {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.session-info .user-info {
    font-weight: bold;
}

.session-info .duration {
    color: #6c757d;
    font-size: 0.9rem;
}

.session-content {
    white-space: pre-wrap;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Highlight pour les tâches non complétées */
.task-incomplete {
    background-color: #fff3cd !important;
    border-left-color: #ffc107 !important;
}

/* Style général pour les colonnes */
.home-columns {
    display: flex;
    gap: 15px;
    height: calc(100vh - 110px); /* Hauteur de base, sera ajustée par JavaScript */
}

.column-third {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Empêche les flex items de déborder */
    max-height: 100%;
}

.card-body {
    overflow-y: auto;
    flex: 1;
}

/* Pour la colonne du rapport de session */
#session-report-column .card-body {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Style bloc-note jaune */
#session-report {
    flex-grow: 1;
    position: relative;
    margin:0px 0px 15px 0;
    background-color: #fff9c4; /* Jaune clair type post-it */
    border-radius: 2px;
    font-family: 'Handlee', 'Comic Sans MS', cursive;
    color: #333;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    border-top: 1px solid #ffd54f;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background-blend-mode: multiply;
}

/* En-tête du bloc-note */
.note-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4px 10px 4px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #795548;
    background-color: #ffecb3;
    border-bottom: 1px dashed #ffcc80;
    box-sizing: border-box;
    z-index: 1;
}

/* Effet de papier déchiré en bas */
.torn-paper-effect {
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 8px;
    background-image: 
        linear-gradient(45deg, transparent 33.333%, #fff9c4 33.333%, #fff9c4 66.667%, transparent 66.667%),
        linear-gradient(-45deg, transparent 33.333%, #fff9c4 33.333%, #fff9c4 66.667%, transparent 66.667%);
    background-size: 16px 16px;
    background-position: 0 -8px;
    z-index: 2;
}

/* Effet de surbrillance du bloc note au survol */
#session-report:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Contenu modifiable du bloc-note */
.note-content {
    width: 100%;
    min-height: 250px;
    background-color: transparent;
    background-image: linear-gradient(rgba(255,253,231,0.8) 1px, transparent 1px);
    background-size: 100% 26px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 26px;
    color: inherit;
    padding: 30px 20px 20px;
    letter-spacing: 0.5px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    cursor: text;
}

#reports-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.note-content:focus {
    outline: none;
    box-shadow: none;
}

/* Style pour le placeholder */
.note-content[placeholder]:empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

.note-content.empty[placeholder]:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

/* Style pour les contrôles de l'éditeur */
.editor-toolbar {
    display: flex;
    padding: 8px;
    background-color: #fffde7;
    border: 1px solid #ffe082;
    border-bottom: none;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    position: relative;
    z-index: 3;
}

.editor-btn {
    margin-right: 5px;
    padding: 3px 8px;
    background-color: #fff8e1;
    border-color: #ffecb3;
    color: #ff8f00;
}

.editor-btn:hover {
    background-color: #ffecb3;
    border-color: #ffd54f;
    color: #e65100;
}

.editor-status {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--green-color);
    transition: color 0.3s ease;
}

.editor-footer {
    padding: 10px;
    font-size: 0.85rem;
    background-color: #fffde7;
    border: 1px solid #ffe082;
    border-top: none;
    border-radius: 0 0 5px 5px;
    position: relative;
    bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 2;
}

/* Nouveau style pour la liste des rapports */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px;
}

.report-item {
    border-radius: 0px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.report-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}


.report-user {
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 0.9rem;
}

.report-user i {
    margin-right: 5px;
    color: #6c757d;
}

.report-duration {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin: 5px 0;
}

.report-duration i {
    margin-right: 5px;
    color: #28a745;
}

.report-preview {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #495057;
    white-space: pre-line;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    position: relative;
}

/* Style pour la modal de rapport de session */
.session-report-modal .modal-body {
    padding: 0px;
}

.session-report-content {
    white-space: pre-wrap;
    background-color: #fff9c4;
    padding: 20px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Style pour les titres de catégorie */
.tasks-category-title {
    font-weight: 600;
    color: #495057;
    padding: 10px 15px;
    background-color: #e9ecef;
    border-left: 3px solid #6c757d;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tasks-category-title:first-child {
    margin-top: 0;
}

#open-session-btn {
    width: 100%;
    display: block;
    margin-left: 0;
    margin-right: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: white;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    background-color: #28a745;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.2);
}

#open-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

#open-session-btn:active {
    transform: translateY(1px);
}

.note-content.disabled {
    background-image: none;
    color: #6c757d;
    font-style: italic;
    cursor: not-allowed;
}