/* Conteneur de chat */
/* Ajoutez ou modifiez la règle pour .chat-container dans votre CSS */
.chat-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden; /* Ajouté pour cacher le débordement horizontal */
    background-color: #f5f5f5;
}

/* Ligne de message (pour l'alignement) */
.chat-message-row {
    display: flex;
    margin-bottom: 16px;
}
.chat-message-row.sent {
    justify-content: flex-end;
}
.chat-message-row.received {
    justify-content: flex-start;
}

/* Avatar/Initiales */
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* .circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0; /* Pour que l'avatar ne rétrécisse pas */
}
.chat-message-row.sent .chat-avatar {
    margin-left: 10px;
}
.chat-message-row.received .chat-avatar {
    margin-right: 10px;
}
.whitespace-pre-wrap {
    white-space: pre-wrap; /* Conserve les sauts de ligne et espaces, mais permet le retour à la ligne auto */
    word-wrap: break-word; /* Alias pour overflow-wrap: break-word; coupe les mots longs */
    overflow-wrap: break-word; /* Standard CSS pour couper les mots longs pour éviter l'overflow */
    word-break: break-word; /* Alternative pour la césure, break-word est souvent suffisant avec overflow-wrap */
}
/* Bulle de message */
.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Effet subtil d'élévation */
    overflow-wrap: break-word;
    word-wrap: break-word; /* Pour une meilleure compatibilité navigateur */
}
.chat-bubble.sent {
    /* Couleurs Materialize: ex: blue lighten-1 white-text */
    border-bottom-right-radius: 6px; /* Pour la petite "queue" de la bulle */
}
.chat-bubble.received {
    /* Couleurs Materialize: ex: grey lighten-2 black-text */
    border-bottom-left-radius: 6px;
}
.chat-bubble .whitespace-pre-wrap {
    /* Pour conserver les sauts de ligne et espaces */
    white-space: pre-wrap;
}

/* Pièces jointes dans la bulle */
.chat-bubble .file-attachment {
    margin-top: 8px;
    display: block; /* Pour que l'image/lien prenne sa propre ligne si désiré */
}
.chat-bubble .file-attachment img {
    max-width: 180px; /* Limite la taille des images affichées */
    border-radius: 8px; /* .rounded */
    /* La classe responsive-img de Materialize peut être ajoutée directement à l'image si besoin */
}
.chat-bubble .file-attachment-link {
    display: inline-flex; /* Pour aligner l'icône et le texte */
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    /* La couleur du fond et du texte sera héritée ou définie par .sent/.received */
}
.chat-bubble .file-attachment-link i.material-icons {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Métadonnées du message (date, auteur) */
.chat-meta {
    font-size: 0.75rem; /* Plus petit */
    margin-top: 5px;
    display: flex;
    align-items: center;
}
.chat-message-row.sent .chat-meta {
    justify-content: flex-end; /* Aligner les métadonnées à droite pour les messages envoyés */
}
.chat-meta i.material-icons {
    font-size: 0.9rem; /* Icônes plus petites pour les métadonnées */
    margin-right: 4px;
}
.chat-meta .author-info {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

nav ul a.unpoly-nav-link.up-current {
    /* color: white; */
    /* background-color: #001449; */
    /* border-bottom-width: 2px;
    border-bottom-style: solid;
    border-color: #1a237e; */
    font-weight: 600;
    text-decoration: underline;
}

ul.dropdown-content a.unpoly-nav-link.up-current {
    color: white !important; /* text-indigo-700 */
    background-color: rgba(79, 70, 229, 0.1) !important; /* Léger fond indigo */
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

#logo-top {
    width: 150px;
}

.mail-text {
    text-align: left;
}

.btn-mail-box {
    width: 100%;
    text-align: center;
}

.mail-btn {
    color: white;
    background-color: #3b79aa;
    padding: 15px 40px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
}

.obligations {
    text-align: center;
}

.uk-tab > li.uk-active > a {
    color: #001449 !important;
    border-color: #001449 !important;
    background-color: #f5f5f5 !important;
    font-weight: 700;
}
