/* ============================================
   Slugify Generator — Styles
   Theme: Dark minimalist with Indigo accent
   ============================================ */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --bg: #111318;
    --bg-card: #1A1C24;
    --bg-input: #111318;
    --bg-hover: #22252F;

    --border: rgba(129, 140, 248, 0.10);
    --border-hover: rgba(129, 140, 248, 0.25);
    --border-focus: #818CF8;

    --text: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #475569;

    --primary: #818CF8;
    --primary-glow: rgba(129, 140, 248, 0.15);
    --green: #34D399;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    --transition: 0.2s ease;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 580px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.header-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 16px var(--primary-glow);
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-header .card-title {
    margin-bottom: 0;
}

.form-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.text-input,
.form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    resize: vertical;
    transition: border-color var(--transition);
}

.text-input:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.82rem;
}

.form-select option {
    background: var(--bg-card);
}

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

.option-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding-top: 16px;
}

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

.output-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-text {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--green);
    min-height: 42px;
    white-space: pre-wrap;
    word-break: break-all;
}

.btn-copy {
    width: 42px;
    height: 42px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-copy:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.char-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.btn-sm {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.bulk-output {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--green);
    min-height: 30px;
    white-space: pre-wrap;
    display: none;
}

.bulk-output.visible {
    display: block;
}

.footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 0.82rem;
    color: var(--green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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