/* werkow.nl — app.css v0.1 */
/* Pragmatisch, mobile-first, geen JS-afhankelijkheden */
/* Kleurpalet: neutraal blauw-grijs — te vervangen na branding-beslissing */

:root {
  --brand:      #2563EB;   /* primair blauw */
  --brand-dark: #1D4ED8;
  --bg:         #F8FAFC;
  --surface:    #FFFFFF;
  --border:     #E2E8F0;
  --text:       #1E293B;
  --muted:      #64748B;
  --error-bg:   #FEE2E2;
  --error-text: #991B1B;
  --success-bg: #DCFCE7;
  --success-text:#166534;
  --radius:     8px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* --- Auth pagina's --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-card--wide { max-width: 560px; }

.auth-card h1 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
}

.auth-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

/* --- Formulier-elementen --- */
label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: .3rem;
}

.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s;
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

button[type="submit"]:hover { background: var(--brand-dark); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 400px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Alerts --- */
.alert {
  padding: .75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.alert p { margin: 0; }
.alert p + p { margin-top: .25rem; }
.alert-error   { background: var(--error-bg);   color: var(--error-text); }
.alert-success { background: var(--success-bg); color: var(--success-text); }

/* --- Landingspagina --- */
.lp-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -.5px;
}

.lp-header-cta {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.lp-hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.lp-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

.lp-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.lp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.waitlist-form {
  display: flex;
  gap: .5rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 200px;
}

.waitlist-form button {
  margin: 0;
  width: auto;
  padding: .6rem 1.25rem;
  font-size: .95rem;
}

.lp-modules {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.lp-modules h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.module-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.module-card p  { font-size: .875rem; color: var(--muted); margin: 0; }
.module-icon    { font-size: 1.5rem; margin-bottom: .5rem; }

.lp-cta-block {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}

.lp-cta-block h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.lp-cta-block p  { margin-bottom: 1.5rem; opacity: .9; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity .15s;
}

.btn-white:hover { opacity: .9; color: var(--brand); }

.lp-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.msg-ok   { background: var(--success-bg); color: var(--success-text); padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.msg-err  { background: var(--error-bg);   color: var(--error-text);   padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }

/* alert-info (blauw) — gebruikt in login, register, forgot, verify */
:root {
  --info-bg:   #EFF6FF;
  --info-text: #1D4ED8;
}
.alert-info { background: var(--info-bg); color: var(--info-text); }

/* --- PWA / Push UI --- */
.push-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.push-bar p { margin: 0; font-size: .875rem; color: var(--muted); }

.btn-push {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 6px;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.btn-push:hover { background: var(--brand-dark); }

.ios-hint {
  display: none;
  background: #FFF7ED;
  color: #92400E;
  border: 1px solid #FED7AA;
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: .85rem;
  margin-top: .75rem;
}

/* PWA install-prompt knop */
.pwa-install-bar {
  background: linear-gradient(90deg, #EFF6FF, #DBEAFE);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pwa-install-bar p { margin: 0; font-size: .875rem; color: var(--brand-dark); font-weight: 500; }

.btn-install {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-size: .875rem;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-install:hover { background: var(--brand-dark); }

/* ============================================================
   APP-LAYOUT (ingelogd gedeelte)
   ============================================================ */

/* Header */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-logo img { display: block; }

.app-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.app-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.app-nav a:hover,
.app-nav a.active { color: var(--brand); }

.app-header-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
}

.app-header-name {
  font-size: .875rem;
  color: var(--muted);
}

.app-header-logout {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.app-header-logout:hover { color: var(--error-text); }

/* Main content area */
.app-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.app-footer {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Page headings */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 1.5rem; margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .55rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-primary   { background: var(--brand);    color: #fff; }
.btn-primary:hover   { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--surface);  color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #F1F5F9; }
.btn-danger    { background: #DC2626;          color: #fff; }
.btn-danger:hover    { background: #B91C1C; color: #fff; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }

/* Data table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th {
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .6rem .75rem;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #F8FAFC; }

/* Card / panel */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2 { font-size: 1rem; margin: 0; }

/* Status badges */
.badge-open     { background:#FEF3C7; color:#92400E; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-closed   { background:#DCFCE7; color:#166534; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-pending  { background:#FEF3C7; color:#92400E; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-approved { background:#DCFCE7; color:#166534; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-rejected { background:#FEE2E2; color:#991B1B; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-active   { background:#DCFCE7; color:#166534; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }
.badge-inactive { background:#F1F5F9; color:#64748B; padding:.2rem .55rem; border-radius:999px; font-size:.75rem; font-weight:600; }

/* Dashboard stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-card .stat-label { font-size: .8rem; color: var(--muted); }

/* Dashboard quick-actions (werknemer) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.action-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
  color: var(--text);
}
.action-card .action-icon { font-size: 2rem; margin-bottom: .5rem; }
.action-card h3 { font-size: 1rem; margin: 0 0 .25rem; }
.action-card p  { font-size: .8rem; color: var(--muted); margin: 0; }

/* Form-layout app */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 600px;
}
.form-card h1 { font-size: 1.3rem; margin-bottom: 1.25rem; }

select,
textarea,
input[type="date"],
input[type="tel"],
input[type="number"] {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s;
  font-family: inherit;
}
select:focus, textarea:focus,
input[type="date"]:focus, input[type="tel"]:focus, input[type="number"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
textarea { min-height: 90px; resize: vertical; }

.form-actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state p { margin: 0; }

@media (max-width: 640px) {
  .app-header { gap: .75rem; padding: 0 1rem; }
  .app-nav { gap: .75rem; }
  .app-main { padding: 1.25rem 1rem; }
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: .5rem .5rem; }
}
