/* ============================================
   NAVBAR MODERNE - STYLE 2025
   ============================================ */

/* Navbar principale */
.navbar.navbar-header {
    background: white !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 1.5rem !important;
    border-bottom: none !important;
    backdrop-filter: blur(10px);
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Sidebar toggler */
.sidebar-toggler {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
}

.sidebar-toggler:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sidebar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown notifications */
.nav-icon .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.nav-icon .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
}

.nav-icon .nav-link i,
.nav-icon .nav-link svg {
    color: #667eea;
    stroke: #667eea;
}

#notification-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    min-width: 20px;
}

/* Dropdown menu moderne */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    z-index: 1050 !important;
}

.dropdown-menu .border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 0.75rem !important;
    margin-bottom: 0.5rem;
}

.dropdown-menu .border-bottom p {
    font-weight: 600;
    color: #667eea;
}

/* Liste des notifications */
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    border: none !important;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.notifications-list .list-group-item {
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    background: white;
}

.notifications-list .list-group-item:hover {
    background: rgba(102, 126, 234, 0.05) !important;
    transform: translateX(5px);
}

/* User menu dropdown */
.dropdown-menu-end {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profil utilisateur */
.nav-link-user {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-link-user:hover {
    background: rgba(102, 126, 234, 0.1);
}

.nav-link-user img {
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Titre de page moderne */
.es-messaging-title {
    background: white !important;
    padding: 1.5rem 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
}

.es-messaging-title h1,
.es-messaging-title h2,
.es-messaging-title h3,
.es-messaging-title h4 {
    margin: 0 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Animation pour l'icône de notification */
@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

.nav-icon .nav-link:hover i,
.nav-icon .nav-link:hover svg {
    animation: bell-ring 0.5s ease-in-out;
}

/* Badge animé pour nouvelles notifications */
#notification-badge.bg-danger {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media screen and (max-width: 767px) {
    .navbar.navbar-header {
        padding: 0.75rem 1rem !important;
    }
    
    .es-messaging-title {
        padding: 1rem;
    }
    
    .es-messaging-title h1 {
        font-size: 1.5rem;
    }
}
