:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #d1fae5;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    /* Aliases */
    --bg: var(--bg-primary);
    --text: var(--text-primary);
    --primary: var(--accent);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #34d399;
    --accent-hover: #10b981;
    --accent-light: #064e3b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    /* Aliases */
    --bg: var(--bg-primary);
    --text: var(--text-primary);
    --primary: var(--accent);
}

.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.2s;
    z-index: 100;
}
.theme-toggle:hover { transform: scale(1.1); }

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

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--background); color: var(--text); line-height: 1.6; }
.container { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
header { text-align: center; margin-bottom: 2rem; }
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle { color: var(--text-muted); font-size: 1.1rem; }
.badges { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.badge { padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.badge-green { background: rgba(34,197,94,0.15); color: #16a34a; }
.badge-blue { background: rgba(59,130,246,0.15); color: #2563eb; }
.badge-purple { background: rgba(139,92,246,0.15); color: #7c3aed; }
.generator-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 3rem; }
.input-section { margin-bottom: 1.5rem; }
.input-section label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.input-section input[type="text"] { width: 100%; padding: 1rem; font-size: 1.1rem; border: 2px solid var(--border); border-radius: 8px; }
.input-section input:focus { outline: none; border-color: var(--primary); }
.options-section { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--background); border-radius: 8px; }
.option-group label:first-child { font-weight: 600; margin-bottom: 0.5rem; display: block; }
.radio-group { display: flex; gap: 1rem; }
.radio-label, .option-checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.output-section { margin-bottom: 2rem; }
.output-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.output-header label { font-weight: 600; }
.copy-btn { padding: 0.5rem 1rem; font-weight: 600; color: var(--primary); background: white; border: 2px solid var(--primary); border-radius: 6px; cursor: pointer; }
.copy-btn:hover { background: var(--primary); color: white; }
.slug-preview { padding: 1rem; background: var(--background); border-radius: 8px; font-family: 'SF Mono', Monaco, monospace; font-size: 1rem; overflow-x: auto; }
.url-prefix { color: var(--text-muted); }
.slug-output { color: var(--primary); font-weight: 600; }
.bulk-section { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.bulk-section h3 { margin-bottom: 1rem; }
.bulk-section textarea { width: 100%; padding: 1rem; font-family: monospace; border: 2px solid var(--border); border-radius: 8px; margin-bottom: 0.5rem; resize: vertical; }
.btn-secondary { padding: 0.75rem 1.5rem; font-weight: 600; color: var(--primary); background: white; border: 2px solid var(--primary); border-radius: 8px; cursor: pointer; margin-bottom: 0.5rem; }
.btn-secondary:hover { background: var(--primary); color: white; }
.features { margin-bottom: 3rem; }
.features h2, .faq h2 { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature { background: var(--card-bg); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.feature-icon { font-size: 2rem; }
.feature h3 { font-size: 1rem; margin: 0.5rem 0; }
.feature p { color: var(--text-muted); font-size: 0.85rem; }
.faq { margin-bottom: 3rem; }
.faq-item { background: var(--card-bg); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.faq-item h4 { margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; }
.faq-item code { background: var(--background); padding: 0.2rem 0.4rem; border-radius: 4px; }
footer { text-align: center; color: var(--text-muted); padding: 2rem 0; }
@media (max-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } .options-section { flex-direction: column; } }

/* Theme Toggle Button */

/* Dark Mode - Variable Overrides */

[data-theme="dark"] body {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .container {
    color: #f1f5f9;
}

[data-theme="dark"] .generator-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .faq-item {
    background: #1e293b;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .tab-btn {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

[data-theme="dark"] .tab-btn:hover {
    color: #f1f5f9;
}

[data-theme="dark"] code {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .badge {
    background: #1e293b;
}

[data-theme="dark"] .subtitle,
[data-theme="dark"] .faq-item p,
[data-theme="dark"] .feature p {
    color: #94a3b8;
}

[data-theme="dark"] footer {
    color: #64748b;
}

[data-theme="dark"]