/**
 * Volley Hub Pro - quick account switcher: styles for the dialog only.
 * The menu entry reuses the app's own .user-dropdown-item, so nothing that
 * already exists on screen is restyled here.
 * Delete this file + account-switcher.js + the two marked lines in index.html
 * to remove the feature.
 */

.acct-box {
    width: min(360px, calc(100vw - 24px));
    box-sizing: border-box;
}

.acct-hint {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
}

.acct-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    padding: 2px;
    margin: 0 -2px;
}

.acct-list.is-busy {
    opacity: 0.5;
    pointer-events: none;
}

.acct-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.acct-row:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.acct-row.is-current {
    border-color: rgba(0, 251, 255, 0.45);
    background: rgba(0, 251, 255, 0.08);
    cursor: default;
}

.acct-avatar {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 900;
}

.acct-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.acct-copy strong,
.acct-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acct-copy strong {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.acct-copy span {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.acct-tag {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 251, 255, 0.35);
    background: rgba(0, 251, 255, 0.1);
    color: var(--primary);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.acct-forget {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.acct-forget:hover {
    color: var(--secondary);
    border-color: rgba(255, 0, 85, 0.4);
    background: rgba(255, 0, 85, 0.08);
}

.acct-add {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px dashed rgba(0, 251, 255, 0.4);
    background: rgba(0, 251, 255, 0.1);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.acct-add:hover:not(:disabled) {
    background: rgba(0, 251, 255, 0.16);
    border-style: solid;
}

.acct-add:disabled {
    opacity: 0.5;
    cursor: default;
}

.acct-empty {
    padding: 8px 0;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 380px) {
    .acct-list {
        max-height: 40vh;
    }
}
