﻿.user-menu-container {
    position: relative;
    display: inline-block;
    margin: 0 20px 0 90px;
    border: 1px solid grey;
    border-radius: 8px;
}

.user-name {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.user-name:hover {
    background-color: #e9ecef;
    border-radius: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -120px;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 8px 0;
    margin: 4px 0 0;
    font-size: 14px;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.danger {
    color: #dc3545;
}

.dropdown-item.danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.dropdown-divider {
    height: 1px;
    margin: 4px 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

.icon {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.profile-section {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    margin-top: -4px;
}

.profile-info {
    display: flex;
    align-items: flex-start;
}

.profile-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 11px;
    color: #6c757d;
    word-break: break-all;
    line-height: 1.3;
    margin-top: 2px;
}
