:root {
    --primary-blue: #043bc8;
    --primary-blue-hover: #032f9f;
    --primary-blue-active: #0b55d9;
    --primary-blue-soft: rgba(4, 59, 200, 0.2);
    --primary-blue-softer: rgba(4, 59, 200, 0.14);
    --highlight-blue: #043bc8;
    --bg-dark: #043bc8;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./fonts/Figtree-400.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./fonts/Figtree-500.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./fonts/Figtree-600.woff2") format("woff2");
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/Figtree-700.woff2") format("woff2");
}
body {
    background-color: var(--bg-dark);
    font-family: "Figtree", sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.app-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(-24px);
}

.app-logo {
    width: 44px;
    height: 74px;
    margin-bottom: 48px;
}

@media (max-width: 480px) {
    body {
        padding: 20px;
    }
}

.app-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.option-row {
    gap: 2rem;
}

.num-input {
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    width: 64px;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: var(--transition-smooth);
}
.num-input:focus {
    border-color: var(--primary-blue);
    background-color: #f8fafc;
}
.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
    margin-top: -10px;
    cursor: grab;
    transition: transform 0.2s ease;
}
input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.15);
    cursor: grabbing;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    inset: 0;
    background-color: #e2e8f0;
    transition: var(--transition-smooth);
    border-radius: 50px;
    cursor: pointer;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-smooth);
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-blue);
}
input:checked + .slider:before {
    transform: translateX(22px);
}

.pwd-container {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pwdOutput {
    font-family:
        ui-monospace, SFMono-Regular, "Cascadia Code", Monaco, Consolas,
        monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-align: center;
    word-break: break-all;
    overflow-wrap: anywhere;
    width: 100%;
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
}

.num-highlight {
    color: var(--highlight-blue);
    display: inline;
    vertical-align: baseline;
}

.copy-button {
    background-color: var(--primary-blue);
    box-shadow: 0 18px 32px var(--primary-blue-soft);
}
.copy-button:hover {
    background-color: var(--primary-blue-hover);
    box-shadow: 0 20px 36px var(--primary-blue-softer);
}

.refresh-button:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.refreshing {
    opacity: 0.3;
    transform: scale(0.98);
}

button {
    transition: var(--transition-smooth) !important;
}
button:active {
    transform: scale(0.96);
}
