:root {
    --primary-color: #1e293b;
    --primary-hover: #0f172a;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --bg: #667eea;
    --card-bg: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --stats-bg: #ecfeff;
    --stats-border: #bae6fd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.calculator-card {
    background: var(--card-bg);
    max-width: 650px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Hero Banner i toppen */
.hero-banner {
    background-color: var(--primary-color);
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-back:hover {
    opacity: 0.8;
}

.lang-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    width: auto;
}

.lang-selector select option {
    color: var(--text);
    background: white;
}

/* Innholdskroppen */
.calc-body {
    padding: 32px;
}

h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

textarea {
    width: 100%;
    height: 180px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text);
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* Statistikk-rutenett */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box {
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.2;
}

/* Lesetid-boks */
.reading-time-box {
    background-color: var(--stats-bg);
    border: 1px solid var(--stats-border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
}

.reading-time-box strong {
    color: var(--primary-color);
}

.footer-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-reset {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    background-color: #f1f5f9;
    color: #ef4444;
    border-color: #ef4444;
}

