/* User Profile and Dropdown Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.username {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.dropdown-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.dropdown-button:hover {
    opacity: 0.7;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000; /* High z-index to ensure it appears above everything */
    /* Ensure dropdown is not clipped */
    overflow: visible;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.wallet-address {
    font-family: monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    cursor: default;
}

.dropdown-item.wallet-address:hover {
    background: none;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}