/* /Shared/MainLayout.razor.rz.scp.css */
/* App layout around the design system's header and footer (those come from wwwroot/zavanto/css/components.css). */

.page[b-aeqoahnl7y] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main[b-aeqoahnl7y] {
    flex: 1 1 auto;
    width: 100%;
    padding: var(--space-7) 0 56px;
}

/* The theme button shows where it switches to: a moon in light theme, a sun in dark theme. */
.theme-toggle span[b-aeqoahnl7y] {
    display: flex;
}

.theme-toggle .theme-icon-sun[b-aeqoahnl7y],
.theme-toggle[data-current="dark"] .theme-icon-moon[b-aeqoahnl7y] {
    display: none;
}

.theme-toggle[data-current="dark"] .theme-icon-sun[b-aeqoahnl7y] {
    display: flex;
}

.theme-toggle:hover[b-aeqoahnl7y] {
    color: var(--on-chrome);
    background: var(--chrome-active);
}

@media (max-width: 420px) {
    .site-main[b-aeqoahnl7y] {
        padding-top: var(--space-6);
    }
}

/* Language link: globe and the other language's name, last in the menu before the theme button. */
.zv-nav a.zv-lang[b-aeqoahnl7y] {
    gap: 6px;
    padding: 0 var(--space-3);
}

.zv-lang[b-aeqoahnl7y]  .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
/* /Tool/PasswordTool.razor.rz.scp.css */
/* The generator card from the mockup, built on the design system's tokens and zv- components. */

.pg-tool[b-ewt1uoxz1h] {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow-md);
}

/* Password / Passphrase: a segmented control (not in the design system yet). */
.pg-segmented[b-ewt1uoxz1h] {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-1);
    border-radius: 10px;
    background: var(--surface-sunken);
    width: fit-content;
}

.pg-segmented button[b-ewt1uoxz1h] {
    font: inherit;
    min-height: 40px;
    padding: 0 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.pg-segmented button[aria-pressed="true"][b-ewt1uoxz1h] {
    background: var(--surface-raised);
    color: var(--ink);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.pg-output[b-ewt1uoxz1h] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-output-label[b-ewt1uoxz1h] {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-muted);
}

.pg-output-row[b-ewt1uoxz1h] {
    display: flex;
    gap: var(--space-2);
}

.pg-output-field.zv-input[b-ewt1uoxz1h] {
    flex: 1 1 auto;
    min-width: 0;
    height: 60px;
    padding: 0 var(--space-4);
    border-radius: 10px;
    font-size: 20px;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
}

.pg-regenerate[b-ewt1uoxz1h] {
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    border: 1px solid var(--line-control);
    border-radius: 10px;
    background: var(--surface-field);
    color: var(--ink);
    cursor: pointer;
}

.pg-regenerate:not(:disabled):hover[b-ewt1uoxz1h] {
    border-color: var(--ink-muted);
}

.pg-regenerate[b-ewt1uoxz1h]  .icon {
    width: 22px;
    height: 22px;
}

/* Strength meter: four bars, filled up to the level in its status colour. */
.pg-strength[b-ewt1uoxz1h] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pg-strength-bars[b-ewt1uoxz1h] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-1);
}

.pg-strength-bars span[b-ewt1uoxz1h] {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
}

.pg-level-1 span:nth-child(-n+1)[b-ewt1uoxz1h] { background: var(--danger); }
.pg-level-2 span:nth-child(-n+2)[b-ewt1uoxz1h] { background: var(--warning); }
.pg-level-3 span:nth-child(-n+3)[b-ewt1uoxz1h] { background: var(--success); }
.pg-level-4 span:nth-child(-n+4)[b-ewt1uoxz1h] { background: var(--success); }

[data-pg-waiting] .pg-strength-bars span[b-ewt1uoxz1h] { background: var(--line); }

.pg-strength-text[b-ewt1uoxz1h] {
    min-height: 20px;
    font-size: 14px;
    color: var(--ink-muted);
}

.pg-level-1 + .pg-strength-text strong[b-ewt1uoxz1h] { color: var(--danger); }
.pg-level-2 + .pg-strength-text strong[b-ewt1uoxz1h] { color: var(--warning); }
.pg-level-3 + .pg-strength-text strong[b-ewt1uoxz1h],
.pg-level-4 + .pg-strength-text strong[b-ewt1uoxz1h] { color: var(--success); }

.pg-copy.zv-btn[b-ewt1uoxz1h] {
    width: 100%;
    height: 52px;
    border-radius: 10px;
}

.pg-settings[b-ewt1uoxz1h] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pg-setting-row[b-ewt1uoxz1h] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.zv-stepper button[b-ewt1uoxz1h] {
    width: var(--touch-min);
    height: var(--touch-min);
}

.zv-stepper button:disabled[b-ewt1uoxz1h] {
    color: var(--ink-muted);
    cursor: not-allowed;
}

.pg-classes[b-ewt1uoxz1h] {
    margin: 0;
    padding: 0;
    border: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 10px;
}

.pg-classes legend[b-ewt1uoxz1h] {
    padding: 0;
    margin-bottom: 10px;
}

.pg-check.zv-check[b-ewt1uoxz1h] {
    align-items: center;
    min-height: var(--touch-min);
    padding: 0 var(--space-3);
    gap: 10px;
    font-size: 15px;
}

.pg-check input[b-ewt1uoxz1h] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.pg-check:has(input:disabled)[b-ewt1uoxz1h] {
    cursor: default;
}

.pg-separator[b-ewt1uoxz1h] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-plain-check[b-ewt1uoxz1h] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--touch-min);
    font-size: 15px;
    cursor: pointer;
}

.pg-plain-check input[b-ewt1uoxz1h] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.pg-tool button:disabled[b-ewt1uoxz1h] {
    cursor: default;
}

@media (max-width: 600px) {
    .pg-tool[b-ewt1uoxz1h] {
        padding: var(--space-5);
    }
}
