/* Dropdown меню пользователя */
.user-menu {
    margin-left: auto;
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-primary, #1a1a1a);
    font-weight: 500;
}

.user-button:hover {
    background: var(--bg-tertiary, #ecf0f1);
    border-color: var(--primary, #0088cc);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary, #0088cc);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

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

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.dropdown-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #1a1a1a);
}

.dropdown-role {
    font-size: 12px;
    color: var(--text-secondary, #6c757d);
    margin-top: 2px;
}

.dropdown-menu {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: var(--text-primary, #1a1a1a);
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-secondary, #f8f9fa);
}

.dropdown-item.danger {
    color: var(--danger, #ef4444);
}

.dropdown-item.danger:hover {
    background: var(--danger-light, #fee2e2);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color, #e9ecef);
    margin: 8px 0;
}

