/* =============================================
   WEGWIJZER — Hoofdstijl
   Huisstijl: Oranje #E8720C
   ============================================= */

:root {
  --primary: #E8720C;
  --primary-dark: #C55F0A;
  --primary-light: #F5A623;
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --text: #1A1A1A;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #E0E0E0;
  --error: #DC3545;
  --error-bg: #FFF0F0;
  --success: #28A745;
  --success-bg: #F0FFF4;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Sora', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* Scrollbalk stijl — smal en subtiel */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ---- Layout ---- */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  width: 100%;
  max-width: 100%;
}

/* ---- Header ---- */
.app-header {
  background-color: #E8720C;
  background-image: none;
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
}

.app-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

.app-header .logo-emoji {
  font-size: 1.5rem;
}

.header-spacer {
  flex: 1;
}

.header-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ---- Kaarten ---- */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ---- Formulier ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  background: var(--bg-white);
  color: var(--text);
  max-width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* ---- Knoppen ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(232, 114, 12, 0.05);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  font-size: 0.875rem;
  font-family: var(--font);
}

.btn-text:hover { text-decoration: underline; }

/* ---- Meldingen ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}

.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.alert.show { display: block; }

/* ---- Loader ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-8 { margin-top: 8px; }
.hidden { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .card {
    padding: 24px 16px;
    border-radius: var(--radius-sm);
  }
  .page-content {
    padding: 16px 12px;
  }
}
