.file-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.file-item {
    width: 220px;
    height: 220px;
    position: relative;
}

.file-item-actions {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
}

.file-item-actions button {
    margin-top: 5px;
}

.pdf-preview,
.image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.image-preview {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-item:hover .overlay {
    opacity: 1;
}

.icon-eye-perso {
    width: 80px;
    height: 80px;
    color: white;
}

@media(max-width: 992px) {
    .file-item {
        width: calc(25% - 20px);
    }
}

@media(max-width: 768px) {
    .file-item {
        width: calc(33.33% - 20px);
    }
}

@media(max-width: 576px) {
    .file-item {
        width: calc(50% - 20px);
    }
}

.modal-open {
    overflow: hidden;
}

.modal-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Couleur et opacité du fond gris */
    z-index: 1040;
    /* Assure que le fond gris est au-dessus du reste du contenu */
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.message-right {
    justify-content: flex-end;
}

.message-left {
    justify-content: flex-start;
}

.message-content {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 10px;
    max-width: 70%;
}

.message-right .message-content {
    background-color: #e2f2ff;
}

.message-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.created-by {
    opacity: 0.7;
    font-size: 14px;
}

.status-nouveau {
    background-color: #ff0000 !important;
    color: #ffffff;
}

.status-en-attente {
    background-color: #808080 !important;
    color: #ffffff;
}

.status-en-cours {
    background-color: #ff9900 !important;
    color: #ffffff;
}

.status-cloture {
    background-color: #00cc00 !important;
    color: #ffffff;
}
