﻿:root {
  --bg: #07131c;
  --panel: #101d27;
  --panel-soft: rgba(5, 12, 18, 0.28);
  --panel-strong: rgba(5, 12, 18, 0.45);

  --line: rgba(22, 184, 255, 0.32);
  --line-soft: rgba(22, 184, 255, 0.20);
  --line-strong: rgba(22, 184, 255, 0.45);

  --green: #84ff2a;
  --blue: #16b8ff;
  --text: #f4fbff;
  --muted: #b9cfdd;

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(22, 184, 255, 0.10), transparent 30%),
    linear-gradient(135deg, #07131c 0%, #081820 48%, #0b1a15 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.shell {
  width: min(1050px, calc(100% - 40px));
  margin: 32px auto 60px;
}

.hero,
.card {
  border: 1px solid var(--line);
  background: rgba(16, 29, 39, 0.82);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.hero {
  margin-bottom: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-logo {
  width: 90px;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 26px;
}

h3 {
  color: var(--green);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.lead {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--text);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.inner-grid {
  align-items: start;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

small,
.muted-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #101a23;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 251, 255, 0.48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 184, 255, 0.12);
}

input[type="file"] {
  padding: 12px;
}

button,
.btn {
  border: 0;
  background: linear-gradient(135deg, var(--green), #33e6a6);
  color: #07131c;
  border-radius: 14px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 10px 24px rgba(132, 255, 42, 0.18);
}

button:hover,
.btn:hover {
  filter: brightness(1.05);
}

.form-section,
.upload-section,
.current-situation-block {
  border: 1px solid rgba(22, 184, 255, 0.28) !important;
  background: var(--panel-soft) !important;
  border-radius: var(--radius-md);
  padding: 18px !important;
  margin-bottom: 20px !important;
  box-shadow: none !important;
}

.form-section-title,
.section-title {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.simple-block {
  padding-top: 8px;
}

.contract-block {
  padding-top: 4px;
}

.formula-box,
.tariff-upload-block,
.tariff-detected-summary {
  margin-top: 16px;
  border: 1px solid rgba(22, 184, 255, 0.25);
  background: var(--panel-strong);
  border-radius: 14px;
  padding: 18px;
}

.formula-box h3,
.tariff-detected-summary h3 {
  color: var(--green);
  margin: 0 0 10px;
  font-size: 17px;
}

.formula-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--text);
  font-weight: 900;
}

.formula-inline input {
  width: 130px;
  min-width: 110px;
}

.formula-inline span {
  color: var(--blue);
  font-weight: 900;
}

.info-box {
  border: 1px solid rgba(132, 255, 42, 0.28);
  background: rgba(132, 255, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 0;
  margin-bottom: 20px;
}

.info-box strong {
  display: block;
  color: var(--green);
  margin-bottom: 8px;
  font-size: 17px;
}

.info-box p {
  margin: 0;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th,
td {
  border: 1px solid rgba(22, 184, 255, 0.25);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green);
  background: rgba(132, 255, 42, 0.08);
  font-weight: 900;
}

td {
  color: var(--text);
}

.hidden {
  display: none !important;
}

/* Oude fieldset-styling definitief uitschakelen indien ergens nog aanwezig */
fieldset,
fieldset.full,
fieldset.compact-fieldset,
.full.compact-fieldset {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  min-inline-size: 0 !important;
}

fieldset legend,
fieldset.compact-fieldset legend {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
}

/* Resultaatpagina / rapportblokken */
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.report-actions a,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, var(--green), #33e6a6);
  color: #07131c;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 900;
}

.section-card {
  border: 1px solid var(--line);
  background: rgba(16, 29, 39, 0.72);
  border-radius: var(--radius-md);
  padding: 20px;
}

.section-card h2,
.section-card h3 {
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  border: 1px solid rgba(22, 184, 255, 0.24);
  background: rgba(5, 12, 18, 0.38);
  border-radius: 14px;
  padding: 16px;
}

.metric strong {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.metric span {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

img.graph,
.graph-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(22, 184, 255, 0.24);
  margin-top: 12px;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 1050px);
    margin-top: 20px;
  }

  .hero,
  .card {
    padding: 20px;
  }

  .brand-row {
    align-items: flex-start;
    gap: 14px;
  }

  .brand-logo {
    width: 64px;
  }

  h1 {
    font-size: 26px;
  }

  .form-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .formula-inline {
    align-items: stretch;
  }

  .formula-inline input {
    width: 100%;
  }

  button,
  .btn {
    width: 100%;
  }
}
.report-card {
  margin-bottom: 24px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.graph-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.graph-card {
  overflow: hidden;
}

.graph-img,
img.graph {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(22, 184, 255, 0.24);
  margin-top: 12px;
  object-fit: contain;
}

.total-row td {
  background: rgba(132, 255, 42, 0.10);
  color: var(--green);
  font-weight: 900;
}

.positive-result strong {
  color: var(--green);
}

.negative-result strong {
  color: #ffcc66;
}

.warning-box {
  margin-bottom: 20px;
}

pre,
code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.group-row td {
  background: rgba(91, 255, 51, 0.10);
  color: #69ff33;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.total-row td {
  background: rgba(91, 255, 51, 0.08);
  font-weight: 800;
}
/* =========================================================
   Scenario A/B table section title bars
   ========================================================= */

.group-row td {
  padding: 0 !important;
  border-left: 1px solid rgba(0, 170, 255, 0.35);
  border-right: 1px solid rgba(0, 170, 255, 0.35);
  border-top: 2px solid rgba(91, 255, 51, 0.45);
  border-bottom: 2px solid rgba(91, 255, 51, 0.28);
  background: transparent;
}

.group-row td::before {
  content: attr(data-title);
  display: block;
  padding: 12px 16px;
  background: linear-gradient(
    90deg,
    rgba(91, 255, 51, 0.24),
    rgba(0, 170, 255, 0.14)
  );
  color: #69ff33;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(91, 255, 51, 0.18);
}

.total-row td {
  background: rgba(91, 255, 51, 0.08);
  font-weight: 800;
}
/* ============================================================
   Scenario A/B - aparte blok voor €/kWh-indicatoren
   ============================================================ */

.kwh-indicator-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(91, 255, 51, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(91, 255, 51, 0.08), rgba(0, 170, 255, 0.06)),
    rgba(10, 28, 38, 0.68);
  box-shadow: inset 0 0 18px rgba(91, 255, 51, 0.08);
}

.kwh-indicator-card h3 {
  margin: 0 0 12px 0;
  color: #69ff33;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kwh-indicator-card .indicator-note {
  margin: 0 0 14px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.kwh-indicator-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.kwh-indicator-table th {
  background: rgba(91, 255, 51, 0.16);
  color: #69ff33;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(0, 170, 255, 0.35);
}

.kwh-indicator-table td {
  padding: 12px 14px;
  border: 1px solid rgba(0, 170, 255, 0.28);
  background: rgba(18, 35, 46, 0.72);
}

.kwh-indicator-table .indicator-total td {
  background: rgba(91, 255, 51, 0.12);
  color: #69ff33;
  font-weight: 800;
}


/* ============================================================
   Resultaatblok scenariovergelijking
   ============================================================ */

.result-summary-card {
  margin-top: 30px;
  margin-bottom: 8px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid rgba(91, 255, 51, 0.42);
  background:
    radial-gradient(circle at top left, rgba(91, 255, 51, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 44, 52, 0.96), rgba(17, 35, 49, 0.98));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(91, 255, 51, 0.06);
}

.result-summary-head {
  color: #7dff31;
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.result-summary-main {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.result-summary-badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-summary-badge.saving {
  color: #7dff31;
  background: rgba(91, 255, 51, 0.14);
  border: 1px solid rgba(91, 255, 51, 0.38);
}

.result-summary-badge.extra {
  color: #ff9a9a;
  background: rgba(255, 120, 120, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.38);
}

.result-summary-badge.neutral {
  color: #d9eefc;
  background: rgba(140, 180, 220, 0.12);
  border: 1px solid rgba(140, 180, 220, 0.28);
}

.result-summary-amount {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 950;
}

.result-summary-amount.saving {
  color: #7dff31;
  text-shadow: 0 0 22px rgba(91, 255, 51, 0.22);
}

.result-summary-amount.extra {
  color: #ff9a9a;
  text-shadow: 0 0 22px rgba(255, 120, 120, 0.22);
}

.result-summary-amount.neutral {
  color: #f0f7ff;
}

.result-summary-text {
  margin: 0;
  color: #f1f7ff;
  font-size: 1.04rem;
  line-height: 1.55;
}


.installation-advice-card {
  margin-top: 28px;
  border: 1px solid rgba(0, 18, 61, 0.12);
  background: #ffffff;
}

.warning-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(235, 74, 41, 0.08);
  border: 1px solid rgba(235, 74, 41, 0.22);
}

.warning-box strong {
  display: block;
  margin-bottom: 8px;
  color: #00123d;
}

.warning-box ul {
  margin: 0;
  padding-left: 20px;
}

.warning-box li {
  margin-bottom: 6px;
}
