:root {
    --primary: #3b82f6;
    --bg-dark: #0a0a0a;
    --text-main: #e2e8f0;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0a0a0a;
    background-image: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 440px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: #ffffff;
}

.subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.result-container {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.result-container:hover {
    border-color: var(--primary);
}

#password-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text-main);
    word-break: break-all;
    user-select: all;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.setting-group {
    margin-bottom: 24px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
}

.length-val {
    color: var(--primary);
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    appearance: none;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn-primary {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.security-badge {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.75rem;
}