#layout-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

#layout-header nav .mini-logo {
    display: flex;
    align-items: center;
}

#layout-header nav .mini-logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

#layout-header nav .mini-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

#layout-header nav .mini-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: none; /* Hidden by default, shown when image fails */
}

#layout-header nav .auth-links ul {
    margin: 0;
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

#layout-header nav .auth-links ul li {
    margin: 0;
}

#layout-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#layout-header nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

#layout-header nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#layout-header nav a:hover::before {
    left: 100%;
}

/* User profile section in header */
.user-profile-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 12px !important;
}

.user-avatar-container {
    position: relative;
    width: 35px;
    height: 35px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar-fallback {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: none; /* Hidden by default, shown when image fails */
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}