/*
 * ===================================================================
 * Professional User Dropdown Menu Styles
 * Path: public/frontend_theme/css/user-dropdown.css
 * ===================================================================
 */

/* Target the dropdown within the marketplace header for specificity */
.header-marketplace-actions .user-dropdown .dropdown-menu {
    border-radius: 8px; /* Softer corners */
    border: 1px solid #e9ecef; /* Subtle border */
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1); /* Deeper, softer shadow */
    padding-top: 0;
    padding-bottom: 0;
    min-width: 240px; /* Give it some space */
    margin-top: 10px !important; /* Add space between trigger and menu */
    overflow: hidden; /* Ensures children conform to border-radius */
}

/* Style the new user info header */
.header-marketplace-actions .user-dropdown .dropdown-header-user {
    padding: 1rem;
    background-color: #f8f9fa; /* A very light grey background */
}

.header-marketplace-actions .user-dropdown .dropdown-header-name {
    font-weight: 600;
    color: #212529;
    margin: 0;
    font-size: 0.95rem;
}

.header-marketplace-actions .user-dropdown .dropdown-header-email {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style the menu items for better spacing and alignment */
.header-marketplace-actions .user-dropdown .dropdown-item {
    padding: 0.75rem 1rem; /* Increase padding for more space */
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* Style the icons within the menu items */
.header-marketplace-actions .user-dropdown .dropdown-item i.fa-fw {
    color: #889097; /* Slightly muted icon color */
    transition: color 0.2s ease-in-out;
    width: 1.25em; /* Ensure fixed width for alignment */
}

/* Hover/focus state for the menu items */
.header-marketplace-actions .user-dropdown .dropdown-item:hover,
.header-marketplace-actions .user-dropdown .dropdown-item:focus {
    background-color: var(--theme-primary-color, #0d6efd); /* Use your theme's primary color */
    color: #fff; /* White text on hover */
}

/* On hover, make the icon white as well */
.header-marketplace-actions .user-dropdown .dropdown-item:hover i,
.header-marketplace-actions .user-dropdown .dropdown-item:focus i {
    color: #fff;
}

/* Style the divider lines */
.header-marketplace-actions .user-dropdown .dropdown-divider {
    margin: 0;
    border-top: 1px solid #e9ecef;
}