:root { 
    --primary-color: #0f766e; 
    --result-bg: #f0fdfa; 
    /* 🌟 NY LINJE: Dette tvinger banneret til å starte som mørkegrønn (teal) før man velger noe annet */
    --bg-gradient: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

body { 
    font-family: Arial, sans-serif; 
    background-color: #667eea; 
    padding: 20px; 
}

.calculator-card { 
    background: #fff; 
    max-width: 600px; 
    margin: 0 auto; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
}

/* Banner øverst */
.hero-banner { 
    background: var(--bg-gradient); /* Sjekk at denne linjen har akkurat denne teksten */ 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: white; 
}
.nav-back { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 14px; 
}

.nav-back:hover { 
    text-decoration: underline; 
}

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

.lang-selector select option { 
    color: black; 
}

/* Tema- og kontrollbar */
.top-bar { 
    background: #f1f5f9; 
    padding: 12px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #e2e8f0; 
}

.theme-btn { 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    cursor: pointer; 
    box-shadow: 0 0 0 1px #cbd5e1; 
    margin-left: 5px; 
}

.btn-reset { 
    background: #cbd5e1; 
    border: none; 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
}

/* Kalkulatorinnhold */
.calc-body { 
    padding: 30px; 
}

.section-title { 
    grid-column: span 2; 
    font-size: 13px; 
    text-transform: uppercase; 
    color: #718096; 
    margin-top: 15px; 
    border-bottom: 1px dashed #e2e8f0; 
    padding-bottom: 5px; 
    font-weight: bold; 
}

.input-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.full-width { 
    grid-column: span 2; 
}

.input-group { 
    display: flex; 
    flex-direction: column; 
}

label { 
    margin-bottom: 6px; 
    font-weight: bold; 
    font-size: 14px; 
}

input, select { 
    width: 100%; 
    padding: 10px; 
    box-sizing: border-box; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    font-size: 15px; 
}

/* Resultatboks */
.results-box { 
    background-color: var(--result-bg); 
    border-left: 5px solid var(--primary-color); 
    padding: 20px; 
    border-radius: 6px; 
}

.result-row { 
    display: flex; 
    justify-content: space-between; 
    margin: 10px 0; 
    font-size: 15px; 
}

.divider { 
    border-top: 1px solid rgba(0,0,0,0.1); 
    padding-top: 15px; 
    margin-top: 15px; 
}

.highlight { 
    font-size: 26px; 
    color: var(--primary-color); 
    font-weight: bold; 
}
/* Erstatt de fire linjene du la til med disse: */
html body.theme-teal { --bg-gradient: linear-gradient(135deg, #0f766e 0%, #115e59 100%); }
html body.theme-blue { --bg-gradient: linear-gradient(135deg, #0056b3 0%, #004085 100%); }
html body.theme-dark { --bg-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
html body.theme-red  { --bg-gradient: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%); }
