/* assets/css/binary-to-text.css */

:root {
    --brand-primary: #10b981; /* Emerald 500 */
    --brand-secondary: #059669; /* Emerald 600 */
    --bg-soft: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0,0,0,0.08);
}

body {
    background-color: var(--bg-soft);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: -4rem; /* Pull up */
    position: relative;
    border-bottom: 4px solid var(--brand-primary);
}

/* Generator Card (Glassmorphism) */
.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

/* Textareas */
.code-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
    resize: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.code-textarea:focus {
    background-color: #fff;
    border-color: var(--brand-primary);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
    outline: none;
}

/* Metrics Bar */
.metrics-bar {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Buttons */
.btn-tool {
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

/* Error state */
.error-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
