body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #172033;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  padding: 1rem 0;
}

.app-layout {
  padding: 1rem 0;
}

.panel {
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
}

/* ====================================================================== */
/* Band-App 2.0.0 - Home/topbar styling                                   */
/* ====================================================================== */

.page-nav-panel.app-topbar {
  padding: 0.35rem;
  border-radius: 0.9rem;
  background: #1f4f8f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.page-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.page-nav a,
.nav-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1f4f8f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.page-nav a.active {
  background: #ffcc33;
  color: #172033;
}

.page-nav a:hover,
.nav-button:hover {
  background: #eaf2ff;
}

.page-nav a.active:hover {
  background: #ffcc33;
}

.inline-nav-form.page-nav-logout {
  margin: 0;
  flex: 0 0 auto;
}

.logout-button {
  font-family: inherit;
}

/* ====================================================================== */
/* Home hero                                                              */
/* ====================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: #1f4f8f;
  color: #ffffff;
}

.home-hero h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  max-width: 12ch;
}

.home-hero .lead {
  max-width: 56ch;
  color: #ffffff;
  opacity: 0.92;
}

.home-actions {
  margin-top: 0.85rem;
  width: min(100%, 520px);
}

.home-upload-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffcc33;
  color: #172033;
  font-weight: 900;
  text-align: center;
}

.home-upload-button:hover {
  background: #ffd966;
}

.home-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: stretch;
}

.home-stats .mini-stat {
  min-width: 82px;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: #ffffff;
  color: #1f4f8f;
  text-align: center;
}

.home-stats .mini-stat strong {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}

.home-stats .mini-stat span {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ====================================================================== */
/* Algemene formulieropmaak                                               */
/* ====================================================================== */

form label {
  display: block;
  margin-bottom: 1rem;
}

form label span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

form input[type="text"],
form input[type="password"],
form input[type="file"],
form input[type="email"],
form textarea,
form select {
  display: block;
  width: 100%;
  max-width: 42rem;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  margin-top: 0.25rem;
}

form textarea {
  min-height: 7rem;
}

form .actions,
.form-actions {
  margin-top: 1.2rem;
}

form button,
form .btn {
  margin-top: 0.5rem;
}

.upload-form label {
  display: block;
  margin-bottom: 1rem;
}

.upload-form label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.upload-form input,
.upload-form textarea,
.upload-form select {
  display: block;
  width: 100%;
  max-width: 42rem;
  box-sizing: border-box;
}

/* ====================================================================== */
/* Loginpagina / branding                                                 */
/* ====================================================================== */

.visually-hidden,
h1.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.login-branding {
  text-align: center;
  margin: 0 auto 2rem auto;
}

.login-logo {
  display: block;
  width: 75%;
  max-width: 720px;
  height: auto;
  margin: 0 auto 1.25rem auto;
}

.login-branding h2 {
  margin: 0 0 1rem 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
}

.login-intro {
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  line-height: 1.5;
}

/* ====================================================================== */
/* Responsive: portret / tablet                                           */
/* ====================================================================== */

@media (orientation: portrait), (max-width: 760px) {
  .page-nav {
    align-items: flex-start;
  }

  .page-nav-links {
    flex: 1 1 auto;
  }

  .page-nav a,
  .nav-button {
    min-height: 36px;
    padding: 0 0.7rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    max-width: none;
  }

  .home-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-stats .mini-stat {
    flex: 1 1 auto;
  }
}

/* ====================================================================== */
/* Responsive: brede landscape-schermen                                   */
/* ====================================================================== */

@media (orientation: landscape) and (min-width: 900px) {
  .home-hero {
    min-height: 45vh;
  }

  .home-stats {
    align-self: center;
  }
  /* ====================================================================== */
/* Loginformulier centreren                                               */
/* ====================================================================== */

.login-form {
  width: min(100%, 42rem);
  margin: 0 auto;
}

.login-form label {
  width: 100%;
  max-width: 100%;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.login-form button {
  display: block;
  width: min(100%, 18rem);
  margin: 1rem auto 0 auto;
}
}

/* ====================================================================== */
/* Responsive: mobiele formulier-layout                                   */
/* ====================================================================== */

@media (max-width: 700px) {
  .form-grid,
  .upload-form,
  .admin-form,
  .login-form {
    display: block !important;
    width: 100%;
  }

  .form-grid label,
  .upload-form label,
  .admin-form label,
  .login-form label {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .form-grid label span,
  .upload-form label span,
  .admin-form label span,
  .login-form label span {
    display: block;
    margin-bottom: 0.35rem;
  }

  .form-grid input,
  .form-grid textarea,
  .form-grid select,
  .upload-form input,
  .upload-form textarea,
  .upload-form select,
  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .login-form input,
  .login-form textarea,
  .login-form select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-grid .full,
  .upload-form .full {
    display: block;
    width: 100%;
  }

  .actions,
  .form-actions {
    display: block;
    width: 100%;
  }

  .actions .btn,
  .form-actions .btn,
  button {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

/* ====================================================================== */
/* Responsive: login op telefoon                                          */
/* ====================================================================== */

@media only screen and (max-width: 600px) {
  .login-logo {
    width: 90%;
    max-width: 420px;
  }

  .login-branding {
    margin-bottom: 1.5rem;
  }

  .login-intro {
    text-align: left;
  }
}