/* Header Layout */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Navbar Branding */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-brand i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.navbar-title {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-trigger:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 250px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-profile-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.dropdown-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item i {
    width: 18px;
    color: var(--text-secondary);
}

.dropdown-item.danger {
    color: var(--accent-danger);
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-item.danger i {
    color: var(--accent-danger);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar-title {
        display: none;
    }
    
    .navbar-brand {
        gap: 0;
    }
    
    .header-left {
        gap: 0.5rem;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .btn-icon {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .user-dropdown-menu {
        min-width: 220px;
        right: -10px;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
    
    .user-avatar-large {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand i {
        font-size: 1.25rem;
    }
    
    .user-dropdown-menu {
        min-width: 200px;
    }
}
