/* public/assets/css/all-notifications-modal.css */

/* Style de base pour l'overlay de la modale, assure le centrage */
.anm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex; /* Utilise Flexbox pour centrer */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    z-index: 1050; /* Au-dessus des autres éléments */
    padding: 1rem;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    display: none; /* Caché par défaut */
}

/* Contenu de la modale */
.anm-modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 800px; /* Plus large que la petite modale */
    height: 90vh; /* Hauteur plus importante */
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    animation: anm-fade-in 0.3s ease-out;
}

@keyframes anm-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.anm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.anm-modal-header h2 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
}

.anm-close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.anm-close-btn:hover {
    color: #fff;
}

.anm-modal-body {
    padding: 0;
    flex-grow: 1;
    position: relative;
    overflow-y: auto; /* Active le défilement */
}

/* Utilise les mêmes styles que la petite modale pour la liste */
.anm-modal-body .nm-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anm-modal-body .nm-notification-item {
    display: flex;
    padding: 15px 25px;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
    gap: 15px;
    align-items: flex-start;
}

.anm-modal-body .nm-notification-item:last-child {
    border-bottom: none;
}

.anm-modal-body .nm-notification-item:hover {
    background-color: #2a2a2a;
}

.anm-modal-body .nm-notification-item a {
    text-decoration: none;
    color: inherit;
    display: contents;
}

.anm-modal-body .nm-notification-item.is-unread {
    background-color: #282c34;
}

/* Styles pour les icônes, titre, message, date (identiques à la petite modale) */
.anm-modal-body .nm-notification-icon {
    font-size: 20px;
    color: #aaa;
    margin-top: 3px;
    flex-shrink: 0;
}

.anm-modal-body .nm-notification-content {
    flex-grow: 1;
}

.anm-modal-body .nm-notification-title {
    font-weight: bold;
    margin: 0 0 5px 0;
    font-size: 0.95em;
    color: #fff;
}

.anm-modal-body .nm-notification-message {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.4;
}

.anm-modal-body .nm-notification-date {
    font-size: 0.8em;
    color: #888;
}

.anm-modal-body #anm-no-notifications-msg {
    color: #888;
    padding: 60px 20px;
    text-align: center;
    font-size: 1.1em;
}


/* Scrollbar personnalisée */
.anm-modal-body::-webkit-scrollbar {
    width: 8px;
}

.anm-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.anm-modal-body::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
}

.anm-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}
