﻿/* Styles pour le système de notifications */

.notification-dropdown {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.notification-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item.unread {
    background-color: #111f87;
    border-left: 3px solid #111f87;
}

.notification-indicator {
    position: relative;
}

.notification-indicator-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    min-width: 20px;
    padding: 0 4px;
}

.notification-indicator-number:empty {
    display: none;
}

/* Animation pour les nouvelles notifications */
@keyframes notificationPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.notification-indicator-number.new {
    animation: notificationPulse 0.5s ease-in-out;
}

/* Styles pour les icônes de notification */
.notification-item .fas {
    width: 16px;
    text-align: center;
}

/* Styles pour les badges */
.notification-item .badge {
    font-size: 0.6rem;
    padding: 0.25em 0.5em;
}

/* Styles pour les dropdowns dans les notifications */
.notification-item .dropdown-menu {
    min-width: 120px;
    font-size: 0.875rem;
}

.notification-item .dropdown-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.notification-item .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Styles pour les états vides */
.notification-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Styles pour les erreurs */
.notification-error {
    text-align: center;
    padding: 2rem 1rem;
    color: #dc3545;
}

.notification-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px !important;
        max-height: 300px !important;
    }
    
    .notification-item {
        padding: 0.75rem 1rem;
    }
    
    .notification-item h6 {
        font-size: 0.875rem;
    }
    
    .notification-item p {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] .notification-item:hover {
    background-color: #2d3748 !important;
}

[data-bs-theme="dark"] .notification-item.unread {
    background-color: #1a365d;
    border-left-color: #63b3ed;
}

[data-bs-theme="dark"] .notification-item .dropdown-item:hover {
    background-color: #2d3748;
}

/* Animation pour le chargement */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.notification-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Styles pour les timestamps */
.notification-timestamp {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Styles pour les actions rapides */
.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Styles pour les notifications groupées */
.notification-group {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.notification-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notification-group-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}


