/* Account Dropdown Component Styles */

.account-dropdown-container {
    position: fixed;
    bottom: 24px;
    left: 50px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
}

.account-dropdown-wrapper {
    position: relative;
    width: 280px;
    margin-left: 0;
}

/* Popup Card */
.account-dropdown-card {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 18px;
    width: 210px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1001;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.account-username {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.2;
}

.account-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.account-menu-item:hover {
    background-color: #f3f4f6;
}

.account-menu-item i {
    font-size: 16px;
    color: #6b7280;
    width: 20px;
    text-align: center;
}

.account-logout {
    color: #e53935;
}

.account-logout i {
    color: #e53935;
}

.account-logout-form {
    margin: 0;
    padding: 0;
}

/* Bottom Trigger Bar */
.account-trigger-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.4rem;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    min-height: auto;
    line-height: normal;
    margin-left: -1rem;
    height: auto;
    width: 220px;
}

.account-trigger-bar:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.account-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.account-trigger-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-trigger-username {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 4px;
}

.account-trigger-role {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}

.account-chevron {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.account-chevron i {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .account-dropdown-container {
        display: none !important;
    }
}

/* Ensure dropdown appears above other content */
.account-dropdown-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}