/* ============================================================
   Console Log Formatter — Styles
   Rose Quartz dark mode with glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary: #FB7185;
    --primary-light: #FDA4AF;
    --accent: #8B5CF6;
    --bg: #1A0A10;
    --bg-elevated: #2A1420;
    --bg-surface: #3A1E2E;
    --bg-card: #2A1420;
    --bg-hover: #4A2838;
    --text-primary: #F5E6EC;
    --text-secondary: #C48A9A;
    --text-muted: #7A4A5A;
    --border: #4A2838;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
}

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

.header {
    text-align: center;
    padding: 28px 0 16px;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

.header h1 span {
    color: var(--primary);
}

.header p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms;
}

.btn:hover {
    background: var(--bg-hover);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 700;
}

.btn-sm {
    padding: 6px 12px;
    font-size: .8rem;
}

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

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

.label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 4px;
}

.input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: .85rem;
    outline: none;
    margin-bottom: 10px;
}

.input:focus {
    border-color: var(--primary);
}

.input-mono {
    font-family: var(--font-mono);
    font-size: .8rem;
}

.color-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.color-row input[type="color"] {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    padding: 2px;
}

.template-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.template-chip {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: all 150ms;
}

.template-chip:hover {
    background: var(--bg-hover);
}

.console-preview {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: .85rem;
    min-height: 60px;
    overflow-x: auto;
}

.code-output {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: .8rem;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: .85rem;
    opacity: 0;
    pointer-events: none;
    transition: all 200ms;
    z-index: 200;
}

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