/* Navigation et Avatar Styles */
.navbar-custom {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding-block: 0;
    height: 80px;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #2563eb !important;
}

.nav-link {
    font-weight: 500;
    color: #1f2937 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb !important;
}

/* S'assurer que tous les éléments de navigation sont visibles */
.navbar-nav {
    z-index: 10001;
}

.nav-item {
    position: relative;
    z-index: 10001;
}

/* Styles pour les boutons dans la navbar */
.navbar .btn {
    margin-left: 10px;
    z-index: 10001;
    position: relative;
}

/* Avatar et profil utilisateur */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.2;
}

.logout-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.logout-btn i {
    font-size: 11px;
}

/* Dropdown pour le profil */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 10000;
    margin-top: 5px;
    overflow: hidden;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2563eb;
    text-decoration: none;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Debug styles */
.debug-info {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .user-profile {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-role {
        font-size: 11px;
    }
    
    .logout-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .profile-dropdown-content {
        min-width: 180px;
    }
}

/*===================== CSS REVUS =========================*/

.navbar-toggler{
    background-color: #d5d5d5 !important;
    display: none;
}