/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */

.user-dropdown-menu {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 10000;
    display: none;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: dropdownFadeIn 0.2s ease-out;
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Пункты меню */
.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1e293b;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-family: inherit;
}

.dropdown-menu-item i {
    width: 20px;
    text-align: center;
    color: #64748b;
    font-size: 16px;
    transition: color 0.2s ease;
}

.dropdown-menu-item span {
    flex: 1;
}

.dropdown-menu-item:hover {
    background: #f1f5f9;
    border-left-color: #3b82f6;
}

.dropdown-menu-item:hover i {
    color: #3b82f6;
}

/* Разделитель */
.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Пункт выхода */
.logout-item {
    color: #dc2626;
}

.logout-item i {
    color: #dc2626;
}

.logout-item:hover {
    background: #fef2f2;
    border-left-color: #dc2626;
}

/* Активный пункт (если нужно) */
.dropdown-menu-item.active {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1d4ed8;
}

.dropdown-menu-item.active i {
    color: #1d4ed8;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        min-width: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .dropdown-menu-item {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
    .user-dropdown-menu {
        background: #1e293b;
        border-color: #334155;
    }
    
    .dropdown-menu-item {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .dropdown-menu-item i {
        color: #94a3b8;
    }
    
    .dropdown-menu-item:hover {
        background: #334155;
    }
    
    .dropdown-divider {
        background: #334155;
    }
}