:root {
    --primary-blue: #0145f2;
    --highlight-blue: #0145f2;
    --bg-dark: #002fa7;
    --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;
}

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

.num-input {
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    width: 76px;
    height: 56px;
    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.15s ease;
}

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

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

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