/* ===== Evo Dingee – account settings pages (static, no MudBlazor) =====
   Uses the color tokens from evo.css, so dark mode works here too. */

.set-shell {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--evo-bg);
    color: var(--evo-text);
    font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Top bar ---------- */
.set-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 56px;
    padding: env(safe-area-inset-top, 0px) 8px 0;
    background: var(--evo-navy);
    color: #fff;
}

html.evo-dark .set-bar { background: #0C1C2E; }

.set-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
}

.set-back svg { width: 20px; height: 20px; }
.set-back:hover { background: rgba(255, 255, 255, .1); }

.set-bar-title { font-weight: 800; font-size: 1.05rem; }

.set-logout { justify-self: end; margin: 0; }

.set-logout button {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.set-logout button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Content ---------- */
.set-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom, 0px));
}

.set-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    background: var(--evo-seg-bg);
    border-radius: 12px;
}

.set-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 9px;
    color: var(--evo-muted) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.set-tab.active {
    background: var(--evo-surface);
    color: var(--evo-text) !important;
    box-shadow: 0 1px 2px rgba(18, 53, 91, .12);
}

.set-card {
    padding: 24px 20px;
    background: var(--evo-surface);
    border: 1px solid var(--evo-border);
    border-radius: 16px;
}

.set-title {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--evo-text);
}

.set-lead { margin: 0 0 20px; color: var(--evo-muted); }

/* ---------- Form ---------- */
.set-form { display: flex; flex-direction: column; gap: 16px; }
.set-field { display: flex; flex-direction: column; gap: 6px; }
.set-field label { margin: 0; font-weight: 700; font-size: .9rem; }

.set-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--evo-border);
    border-radius: 12px;
    background: var(--evo-surface);
    color: var(--evo-text);
    font: inherit;
    font-size: 1rem;              /* 16px stops iOS zooming in */
}

.set-input:focus {
    outline: none;
    border-color: var(--evo-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--evo-accent) 20%, transparent);
}

.set-input:disabled {
    background: var(--evo-surface-muted);
    color: var(--evo-muted);
    cursor: not-allowed;
}

.set-input.invalid { border-color: var(--evo-expense); }

/* Remove the template's green/red outlines (app.css) */
.set-shell .valid.modified:not([type=checkbox]),
.set-shell .invalid { outline: none; }

.set-password { position: relative; }
.set-password .set-input { padding-right: 72px; }

.set-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--evo-accent);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

.set-eye:hover { background: var(--evo-lagoon-soft); }

.set-hint { font-size: .8rem; color: var(--evo-muted); }

.set-shell .validation-message {
    font-size: .85rem;
    font-weight: 600;
    color: var(--evo-expense);
}

.set-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: var(--evo-lagoon);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.set-submit:hover { filter: brightness(0.92); }
.set-submit:focus-visible { outline: 3px solid #7FD3CC; outline-offset: 2px; }

/* ---------- Status messages (StatusMessage component) ---------- */
.set-card .alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    font-weight: 500;
}

.set-card .alert-success { background: var(--evo-ok-box); color: var(--evo-income); }
.set-card .alert-danger { background: var(--evo-expense-soft); color: var(--evo-expense); }

@media (min-width: 960px) {
    .set-main { padding-top: 40px; }
    .set-card { padding: 32px; }
}
