/* Altijd padding meerekenen in breedte */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #203040;
  min-height: 100vh;
  overflow-x: hidden; /* voorkomt horizontaal scrollen */
}

.dashboard-bg {
  min-height: 100vh;
  background: linear-gradient(180deg, #223344 0%, #1a2636 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
}

.logo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}
.veerenstael-logo {
  width: 340px;
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 22px auto 0 auto;
}
.subtitle-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  margin-top: 6px;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

.main-card {
  background: #222c38;
  border-radius: 18px;
  box-shadow: 0 8px 32px #0004;
  padding: 32px 20px;           /* padding verkleind */
  max-width: 950px;
  width: 100%;                  /* blijft binnen frame */
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

/* Header centreren */
.header {
  text-align: center;
}
.header p {
  text-align: center;
  color: #b8c7e0;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Grid voor formulier en resultaat */
.content-grid {
  display: flex;
  flex-wrap: wrap;   /* voorkomt overflow */
  gap: 24px;         /* iets kleiner */
  margin-top: 28px;
  justify-content: center;
}
.input-pane, .output-pane {
  flex: 1 1 0;
  min-width: 0;
}
.input-pane {
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.output-pane {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

/* Formulier styling */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #e0e6f0;
}
form input, form select {
  width: 100%;
  background: #1a2230;
  color: #e0e0e0;
  border: none;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 18px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}
form input:focus, form select:focus {
  outline: 2px solid #3e70ff;
}

/* Knoppen */
.button-row {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  justify-content: flex-start;
}
button {
  border: none;
  border-radius: 9px;
  padding: 14px 26px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
button.green {
  background: #13d17c;
  color: #fff;
}
button.green:hover {
  background: #10b86a;
}
button.reset-btn {
  background: #23314a;
  color: #fff;
}
button.reset-btn:hover {
  background: #3b4970;
}

/* Resultaat blok */
.result-block {
  background: #232b3a;
  border-radius: 12px;
  padding: 28px 24px 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 16px #0002;
  text-align: center;
}
.result-block h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #b8c7e0;
}
.result-bedrag {
  font-size: 2.3rem;
  font-weight: bold;
  color: #13d17c;
  margin-top: 2px;
}

.info-block {
  background: #232b3a;
  border-radius: 12px;
  padding: 18px 20px;
  color: #b8c7e0;
  font-size: 1rem;
  min-height: 40px;
  margin-top: 8px;
  box-shadow: 0 1px 8px #0002;
}

@media (max-width: 950px) {
  .main-card {
    padding: 24px 16px;  /* padding responsive aangepast */
    max-width: 100%;     /* altijd binnen viewport */
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .input-pane,
  .output-pane {
    padding: 0;
    max-width: 100%;     /* voorkomt overflow */
  }
  .veerenstael-logo {
    width: 90vw;
    max-width: 98vw;
  }
}
