* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 500px;
}

.generator-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.password-display {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.password-field {
    flex: 1;
    padding: 1rem 1.2rem;
    background: var(--bg-secondary);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.password-field:focus {
    outline: none;
    border-color: var(--accent);
}

.copy-btn {
    padding: 1rem;
    background: var(--accent);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.strength-indicator {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.options-section {
    margin-bottom: 2rem;
}

.length-control {
    margin-bottom: 1.5rem;
}

.length-control label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.length-control label span {
    color: var(--accent);
    font-weight: 600;
}

.length-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.length-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.option-item input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-item input:checked+.checkmark {
    background: var(--accent);
}

.option-item input:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.option-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.generate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--success);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

.notification.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 500px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .generator-card {
        padding: 1.5rem;
    }
}