/* ==========================================================================
   DOCKREGIE - APPLICATIE STYLING (assets/style.css)
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--off);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

/* ------------------ HEADER ------------------ */
.site-header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(35,40,94,0.25);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.2);
}

.logo-module {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.header-clock {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  font-weight: 500;
}

/* ------------------ ALGEMEEN ------------------ */
.view { flex: 1; flex-direction: column; display: flex; }
.req { color: var(--red); margin-left: 2px; }

/* ------------------ DRIVER VIEW (CHECK-IN) ------------------ */
.form-topbar {
  background: var(--navy);
  padding: 0 36px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 24px 80px;
}

.form-card-header {
  max-width: 580px;
  width: 100%;
  margin-bottom: 24px;
}

.form-card-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.form-card-header p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.form-card {
  max-width: 580px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(35,40,94,0.06);
}

.form-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--light);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
  margin-bottom: 7px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(35,40,94,0.1);
}

.form-footer {
  padding: 24px 32px;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.submit-btn {
  padding: 13px 32px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: all 0.15s;
}

.submit-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(222,27,81,0.3);
}

/* ------------------ TICKET (SUCCES/STATUS) ------------------ */
.ticket {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px auto;
  box-shadow: 0 2px 12px rgba(35,40,94,0.06);
  text-align: left;
  max-width: 460px;
  width: 100%;
}

.ticket-header {
  background: var(--navy);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-header .t-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.ticket-header .t-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.t-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  border-bottom: 1px solid var(--light);
  font-size: 14px;
}
.t-row:last-child { border-bottom: none; }
.t-row .t-key { color: var(--muted); font-size: 12px; font-weight: 500; }
.t-row .t-val { font-weight: 600; color: var(--navy); }

/* ------------------ ADMIN VIEW ------------------ */
.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.table-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px 40px;
}

.table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(35,40,94,0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead { background: var(--navy); }

thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 13px 16px;
  text-align: left;
}

tbody tr { border-bottom: 1px solid var(--light); }
tbody tr:hover { background: #f9fafc; }

tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}

.plate-tag {
  display: inline-block;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.assign-btn {
  padding: 6px 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
}

.assign-btn:hover { background: var(--red); }

/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .table-scroll { padding: 12px; }
  .admin-header { padding: 0 16px; }
}

/* ══════════════════ STATISTIEKEN BALK (ADMIN) ══════════════════ */
.stats-strip {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.stat-tile {
  flex: 1;
  background: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 700px) {
  .stats-strip {
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0 16px;
  }
  .stat-tile {
    border: 1px solid var(--border);
    border-radius: 8px;
  }
}

/* ══════════════════ LANGUAGE SCREEN (VOORDEUR) ══════════════════ */
#screen-lang { padding: 60px 24px; text-align: center; }
.lang-hero { margin-bottom: 48px; }
.lang-hero .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: inline-block; }
.lang-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 42px; color: var(--navy); line-height: 1.1; margin-bottom: 12px; }
.lang-hero p { font-size: 15px; color: var(--muted); font-weight: 400; }

.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; width: 100%; margin: 0 auto; }
.lang-btn { background: var(--white); border: 1.5px solid var(--border); border-radius: 6px; padding: 16px 18px; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 14px; text-align: left; }
.lang-btn:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(222, 27, 81, 0.1); transform: translateY(-2px); }

.flag { width: 36px; height: 24px; border-radius: 3px; flex-shrink: 0; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.18); display: inline-block; }
.flag svg { width: 100%; height: 100%; display: block; }

.lang-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.lang-text span { font-size: 12px; color: var(--muted); font-weight: 400; }

@media (max-width: 700px) {
  .lang-grid { grid-template-columns: 1fr 1fr; }
}

.back-btn { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer; font-family: 'Barlow', sans-serif; font-weight: 500; transition: color 0.15s; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.back-btn:hover { color: var(--white); }