/* Исправления для выпадающего меню пользователя */

.user-dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    position: fixed;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3000;
    padding: 8px 0;
    max-width: 280px;
    /* Дополнительное смещение для лучшего выравнивания */
    margin-right: -15px;
}

.user-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 3000;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    color: #333;
    text-decoration: none;
    border-bottom: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f6f8fa;
    color: #0366d6;
}

.dropdown-content a i {
    width: 16px;
    text-align: center;
    color: #586069;
}

.dropdown-content a:hover i {
    color: #0366d6;
}

.dropdown-divider {
    height: 1px;
    background-color: #e1e4e8;
    margin: 8px 0;
}

.admin-link, .moderation-link {
    border-left: 3px solid transparent;
}

.admin-link:hover, .moderation-link:hover {
    border-left: 3px solid #0366d6;
    background-color: rgba(3, 102, 214, 0.05);
}

.logout-link {
    color: #d73a49 !important;
}

.logout-link:hover {
    background-color: rgba(215, 58, 73, 0.05) !important;
    color: #d73a49 !important;
}

.logout-link i {
    color: #d73a49 !important;
}

.badge {
    background-color: #d73a49;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}
