/* Code Minifier Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }

header { text-align: center; margin-bottom: 2rem; }

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1rem; }

.badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

.badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

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

.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-input);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mode-btn.active { background: var(--primary); color: white; }

.editor-panel { margin-bottom: 1rem; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--bg-input);
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
}

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

textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-input);
    color: var(--text);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
}

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

.action-buttons { margin: 1rem 0; }

.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

.stats-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-label { display: block; color: var(--text-muted); font-size: 0.85rem; }
.stat-value { font-size: 1.5rem; font-weight: 600; color: var(--text); }
.stat.highlight .stat-value { color: var(--success); }

.features { margin-bottom: 2rem; }
.features h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.75rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.feature {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.feature h3 { margin-bottom: 0.5rem; color: var(--text); }
.feature p { color: var(--text-muted); font-size: 0.9rem; }

.faq { margin-bottom: 2rem; }
.faq h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.75rem; }
.faq-category { margin-bottom: 1.5rem; }
.faq-category-title { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); color: var(--primary); }
.faq-item { background: var(--bg-card); padding: 1.25rem; border-radius: 0.75rem; margin-bottom: 0.75rem; border: 1px solid var(--border); }
.faq-item h4 { margin-bottom: 0.5rem; color: var(--text); }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; }

footer { text-align: center; padding: 2rem 0; border-top: 1px solid var(--border); color: var(--text-muted); }
footer p:first-child { color: var(--text); margin-bottom: 0.25rem; }

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .calculator-card { padding: 1.5rem; }
    .stats-section { flex-direction: column; gap: 1rem; }
}
