.main-header {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    color: var(--text-main);
    letter-spacing: -0.8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(0, 113, 227, 0.05);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(0, 113, 227, 0.08);
    font-weight: 700;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 16px 4px 4px;
    border-radius: 40px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.header-avatar {
    line-height: 0;
    flex-shrink: 0;
    position: relative;
}

.header-avatar img, 
.header-avatar div {
    border-radius: 50% !important;
    border: 2px solid #fff;
    object-fit: cover;
}

.status {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid #fff;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
}

.user-role {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 59, 48, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(255, 59, 48, 0.15);
    transform: scale(1.05);
}

.logout-btn svg {
    stroke: var(--danger);
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .header-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .user-profile {
        padding: 4px;
        background: transparent;
    }
    
    .header-container {
        height: 60px;
    }
}