/* Account Dropdown - Clean Fix */
/* This file provides clean, conflict-free styles for the account dropdown */

/* Ensure header allows dropdown to overflow */
.site-header {
    overflow-x: hidden;
    overflow-y: visible !important;
}

.site-header .container {
    overflow: visible !important;
}

.site-header .header-content {
    overflow: visible !important;
}

/* Account dropdown wrapper */
.user-menu-wrapper {
    position: relative;
}

/* Account dropdown */
.account-dropdown {
    display: none;
    position: fixed;
    top: 56px;
    right: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    max-width: 280px;
    z-index: 10000;
    overflow: hidden;
}

@media (min-width: 768px) {
    .account-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* Dropdown header */
.account-dropdown-header {
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.account-dropdown-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
}

.account-dropdown-email {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Dropdown links */
.account-dropdown-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

.account-dropdown-link a{
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

.account-dropdown-link:last-child {
    border-bottom: none;
}

.account-dropdown-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.account-dropdown-link.logout {
    color: #dc2626;
    border-top: 1px solid #e5e7eb;
}

.account-dropdown-link.logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.account-dropdown-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* Override header-actions styles for user menu button */
.header-actions .user-menu-wrapper .user-menu-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: none !important;
    background: none !important;
    position: relative !important;
}

/* Force important on dropdown links to override header-actions */
.account-dropdown-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.account-dropdown-link:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.account-dropdown-link svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
}
/* Additional overrides for header-actions conflicts */
.header-actions .account-dropdown-link {
    justify-content: flex-start !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: static !important;
}

.header-actions .account-dropdown-link:last-child {
    border-bottom: none !important;
}

.header-actions .account-dropdown-link.logout {
    border-top: 1px solid #e5e7eb !important;
    border-bottom: none !important;
}
/* Search bar show/hide fix */
#searchBar.show {
    display: block !important;
}

#searchBar {
    display: none !important;
}