/* User Menu Styles */

/* User Menu Toggle */
.user-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    font-size: 14px;
    font-weight: 500;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.user-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User Dropdown Menu */
.user-menu {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    color: #333;
}

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

.user-menu-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-menu .user-name {
    font-weight: 600;
    color: #222;
    font-size: 15px;
    margin-bottom: 2px;
}

.user-email {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trial-info {
    padding: 12px 16px;
    font-size: 13px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    color: #666;
}

.trial-info .upgrade-link {
    color: #4f46e5;
    font-weight: 500;
    margin-left: 4px;
    text-decoration: none;
}

.trial-info .upgrade-link:hover {
    text-decoration: underline;
}

.user-menu-items {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.user-menu-items .divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.user-menu-items .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-menu-items .menu-item i {
    width: 24px;
    margin-right: 12px;
    color: #666;
    text-align: center;
}

.user-menu-items .menu-item:hover {
    background: #f8f9fa;
    color: #000;
}

.user-menu-items .menu-item:hover i {
    color: #4f46e5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-menu {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: 100%;
    }
    
    .user-menu-toggle {
        padding: 6px 10px;
    }
    
    .user-name {
        max-width: 100px;
    }
}
