/* User-menu dropdown (avatar button in the header) - logout, quick theme switch, and
   "Raise an Issue" (_LoginPartial.cshtml, wwwroot/js/aq-user-menu.js). Panel positioning/
   open-state mirrors the notification centre's own panel (notification-centre.css's
   .aq-notif-panel/.aq-notif-panel-open) for a consistent header-dropdown feel. */

.aq-user-menu-wrap {
    position: relative;
}

.aq-user-menu-btn {
    position: relative;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Sits on the chip/container itself rather than overlapping the avatar circle. */
.aq-user-menu-cog-badge {
    position: absolute;
    right: 0.1rem;
    top: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--aq-neutral-colour-light-50);
}

/* Overrides .aq-nav-chip i's own colour (aquilastrap.css) so the cog stays grey
   instead of picking up the chip's default icon tint. */
.aq-user-menu-cog-badge i {
    color: var(--aq-neutral-colour-light-50);
}

.aq-user-menu-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 280px;
    background: var(--aq-white);
    border-radius: var(--aq-radius, 0.6rem);
    box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 9000;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    padding: 0.5rem 0;
}

.aq-user-menu-panel.aq-user-menu-panel-open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

[data-theme="dark"] .aq-user-menu-panel {
    background: var(--aq-surface-dark, #1e293b);
    box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.aq-user-menu-header {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1rem 0.75rem;
    border-bottom: 1px solid var(--aq-surface-border, #e2e8f0);
    margin-bottom: 0.25rem;
}

.aq-user-menu-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--aq-text-colour, var(--aq-secondary-colour));
}

.aq-user-menu-email {
    font-size: 0.75rem;
    color: var(--aq-neutral-colour-light-25, #737780);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aq-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--aq-text-colour, var(--aq-secondary-colour));
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .aq-user-menu-item i {
        width: 1rem;
        text-align: center;
        color: var(--aq-main-colour);
    }

    .aq-user-menu-item:hover {
        background-color: var(--aq-neutral-colour-light-90, #ededee);
        color: var(--aq-text-colour, var(--aq-secondary-colour));
    }

[data-theme="dark"] .aq-user-menu-item:hover {
    background-color: var(--aq-surface-dark-hover, #383c48);
}

.aq-user-menu-item.aq-user-menu-logout i {
    color: var(--aq-error-colour);
}

.aq-user-menu-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1rem;
}

.aq-user-menu-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--aq-neutral-colour-light-25, #737780);
}

.aq-theme-quick-switch {
    display: flex;
    gap: 0.25rem;
}

.aq-theme-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    border: 1px solid var(--aq-surface-border, #e2e8f0);
    background: transparent;
    color: var(--aq-neutral-colour-light-25, #737780);
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .aq-theme-quick-btn:hover {
        border-color: var(--aq-main-colour);
    }

    .aq-theme-quick-btn.active {
        background: var(--aq-main-colour-light-75);
        border-color: var(--aq-main-colour);
        color: var(--aq-main-colour-dark-25);
    }

.aq-user-menu-divider {
    height: 1px;
    background: var(--aq-surface-border, #e2e8f0);
    margin: 0.4rem 0;
}

