:root {
    --primary-color: #1e293b;
    --primary-hover: #0f172a;
    --accent: #10b981;
    --bg: #667eea;
    --card-bg: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
}

* {
    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: 480px;
    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: 28px;
}

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

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

input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text);
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

button:hover {
    background-color: var(--primary-hover);
}

/* Resultatboks */
#resultat {
    margin-top: 24px;
    padding: 16px;
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: 8px;
    display: none;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

#resultat strong {
    color: var(--primary-color);
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

