/* ============= Theme & Reset ============= */
:root{
  --bg: #f6f7fb;
  --text: #1f2937;
  --muted: #6b7280;
  --panel: #ffffff;
  --panel-alt:#e5e7eb;
  --brand: #9e2323;          /* J4U rood */
  --brand-dark:#7f1c1c;
  --accent: #111827;         /* donkere knop */
  --accent-hover:#0b1220;
  --ring: #3b82f6;           /* focus-blauw */
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-xl: 24px;
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============= Top bar (optioneel) ============= */
.topbar{
  height:56px;
  background:#e6e6e6;
  display:flex;
  align-items:center;
  padding:0 16px;
}
.logo-small{ height:28px; margin-right:8px }
.topbar-title{ font-size:12px; color:#888 }

/* ============= Hero logo ============= */
.logo{
  display:flex;
  justify-content:center;
  padding:32px 16px 8px;
  background:#fff;            /* wit vlak achter het logo */
  border-bottom:1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.logo-big{
  width:min(680px, 92vw);
  height:auto;
  display:block;
}

/* ============= Login card ============= */
.login-wrap{
  display:flex;
  justify-content:center;
  padding:32px 16px 96px;
}

.login-card{
  width:min(520px, 94vw);
  background:var(--panel);
  padding:28px 24px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  text-align:center;
  border:1px solid var(--panel-alt);
}

.login-card h3{
  margin:2px 0 6px;
  font-size:20px;
  letter-spacing:.2px;
}
.subtitle{
  margin:0 0 20px;
  color:var(--muted);
  font-size:14px;
}

/* ============= Form fields ============= */
.login-card form{ text-align:left; }

.login-card input{
  display:block;
  width:100%;
  padding:12px 14px;
  margin-bottom:12px;
  font-size:15px;
  color:var(--text);
  background:#f9fafb;
  border:1px solid #d1d5db;
  border-radius:12px;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-card input::placeholder{
  color:#9ca3af;              /* grijze placeholder */
}

.login-card input:hover{
  background:#fff;
  border-color:#c5cad3;
}

.login-card input:focus{
  background:#fff;
  border-color:var(--ring);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* ============= Buttons ============= */
.btn-primary{
  display:inline-block;
  width:100%;
  margin-top:4px;
  border:0;
  border-radius:12px;
  padding:12px 16px;
  cursor:pointer;
  background:var(--accent);
  color:#fff;
  font-weight:600;
  font-size:15px;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.btn-primary:hover{ background:var(--accent-hover) }
.btn-primary:active{ transform:translateY(1px) }

.btn-link{
  display:inline-block;
  margin-top:14px;
  text-decoration:none;
  text-align:center;
  background:var(--brand);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  font-weight:600;
  box-shadow: 0 6px 16px rgba(158,35,35,.25);
  transition: background .15s ease, transform .05s ease;
}
.btn-link:hover{ background:var(--brand-dark) }
.btn-link:active{ transform:translateY(1px) }

/* ============= Alerts ============= */
.error{
  background:#fee2e2;
  border:1px solid #fecaca;
  color:#7f1d1d;
  padding:10px 12px;
  border-radius:12px;
  margin:0 0 12px;
}

/* ============= Small screens ============= */
@media (max-width: 480px){
  .login-card{ padding:24px 16px }
  .btn-link, .btn-primary{ font-size:14px }
}

/* ============= DASHBOARD ============= */

/* --- NAVBAR --- */
.navbar {
  height: 56px; background: #efefef; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #e0e0e0;
}
.nav-logo { height: 28px; }
.nav-links { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #333; padding: 6px 10px; border-radius: 8px; }
.nav-links a.is-active, .nav-links a:hover { background: #e7e7e7; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background:#2b2b2b; color:#fff; font-weight: 700;
}

/* ===== Navbar tweaks (sluit aan op bestaande stijl) ===== */
.nav-left { display:flex; align-items:center; gap:16px; }
.nav-right{ display:flex; align-items:center; gap:12px; }

/* Logo passend in balk van 56px hoog */
.navbar .nav-logo { height:125px; width:auto; display:block; }

/* Uitlogknop compact in de topbar */
.navbar .btn.btn-danger { padding:6px 12px; border-radius:8px; }

/* Optioneel: maak nav-links iets compacter in de balk */
.nav-links a { padding:6px 12px; }


/* Layout */
.page { background:#f6f8fc; }
.container { max-width:1100px; margin:24px auto; padding:0 16px; }
.page-title { margin:16px 0 12px; }

/* Panel */
.panel {
  background:#fff; border-radius:16px; padding:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.06); margin-bottom:22px;
}
.panel-header {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px; justify-content:space-between;
  /* ▼ MEER RUIMTE onder header (werkt voor 'Gegevens wijzigen' én 'Rapportages') */
  margin-bottom:16px;
}
.panel-header h2 { margin:0; }

/* Filterbar */
.filter-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.filter-bar input[type="text"],
.filter-bar input[type="email"] {
  height:36px; border-radius:10px; border:1px solid #d0d4dc; padding:0 10px; min-width:180px;
}
.filter-actions { display:flex; gap:8px; }

/* Cards */
.card-list { display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.card {
  display:flex; gap:16px; background:#fff; border:1px solid #e7e9ef; border-radius:14px;
  padding:12px; text-decoration:none; color:inherit; transition:transform .05s ease, box-shadow .15s ease;
}
.card:hover { transform:translateY(-1px); box-shadow:0 10px 28px rgba(0,0,0,.08); }
.card-media { width:64px; height:64px; border-radius:12px; background:#f0f2f7; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:22px; }
.avatar-circle { border-radius:50%; width:56px; height:56px; }
.card-body { flex:1; }
.card-title { margin:2px 0 6px; font-size:18px; }
.card-text { margin:0 0 8px; color:#526070; font-size:14px; }

/* Buttons (hergebruik stijl uit login) */
.btn { border:0; border-radius:10px; padding:8px 14px; cursor:pointer; background:#2b2b2b; color:#fff; font-weight:600; text-decoration:none; display:inline-block; }
.btn-dark { background:#2b2b2b; color:#fff; }
.btn-danger { background:#9e2323; color:#fff; }

/* Pagination */
.pagination { display:flex; align-items:center; gap:12px; margin-top:12px; }
.page-link { text-decoration:none; padding:6px 10px; border:1px solid #d0d4dc; border-radius:8px; }
.page-info { color:#6b7280; }
.muted { color:#6b7280; }

/* Accordion (details/summary) */
.accordion {
  margin-top: 8px;
  margin-bottom: 8px;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  background: #fafbff;
}
.accordion[open] { background: #fff; }
.accordion-summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  font-weight: 600;
  color: #2b2b2b;
  display: flex; align-items: center; gap: 8px;
}
/* custom chevron */
.accordion-summary::before {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280;
  transform: rotate(-45deg); transition: transform .15s ease;
}
.accordion[open] .accordion-summary::before { transform: rotate(45deg); }
/* ruimte voor de inhoud van de accordion */
.accordion .filter-bar { padding: 12px 14px 14px; border-top: 1px solid #e9ecf2; }
/* Filters: iets ruimer */
.filter-bar input[type="text"], .filter-bar input[type="email"] { height: 38px; padding: 0 12px; min-width: 200px; }
/* Cards: 2 kolommen op brede schermen */
@media (min-width: 960px) {
  .card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
/* Summary hover */
.accordion-summary:hover { background: #f4f6fb; border-radius: 12px; }

/* ====== Client detail ====== */
.client-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
.client-item { background:#fafafa; border:1px solid #e7e9ef; border-radius:12px; padding:10px 12px; }
.client-item .label { font-size:12px; color:#6b7280; margin-bottom:4px; }
.client-item .value { font-weight:600; }
.client-item.col-span-2 { grid-column: span 2; }

/* ====== Tabel (rapports) ====== */
.table-wrap { overflow:auto; border-radius:12px; border:1px solid #e7e9ef; background:#f7f7f7; }
.table { width:100%; border-collapse:collapse; font-size:14px; }
.table thead th {
  text-align:left; padding:10px 12px; background:#f0f0f0; border-bottom:1px solid #e3e3e3; font-weight:700; font-size:13px;
}
.table tbody td { padding:8px 12px; border-bottom:6px solid #f7f7f7; background:#fff; }
.table .truncate { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Zorg dat de tabel niet meer meegroeit met content */
.table--fixed { table-layout: fixed; width: 100%; }

/* Échte 1-regel ellipsis binnen de cel */
.clip-1{
  display: block;
  width: 100%;
  min-width: 0;            /* belangrijk bij fixed tables */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* (optioneel) forceer breken als iemand echt belachelijk lange tokens plakt */
.clip-1 { overflow-wrap: anywhere; }  /* voegt géén extra regels toe, maar voorkomt layout-glitches */

/* Zorgt dat extreem lange woorden/strings niet uit het paneel lopen */
.text-wrap{
  white-space: normal;     /* meerregelig */
  overflow-wrap: anywhere; /* mag overal breken (ook midden in lange tokens) */
  word-break: break-word;  /* fallback voor oudere browsers */
}


/* floating add button (+) – GROTER GEMAAKT */
.fab {
  border:0;
  width:40px;               /* was 28px */
  height:40px;              /* was 28px */
  border-radius:10px;
  background:#2b2b2b;
  color:#fff;
  font-size:22px;           /* groter + teken */
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* ====== Modal ====== */
.no-scroll { overflow:hidden; }
.modal { position:fixed; inset:0; display:none; z-index:1000; }
.modal.is-open { display:block; }
.modal__overlay { position:absolute; inset:0; background:rgba(15,23,42,.45); }
.modal__dialog {
  position:relative; z-index:1; width:min(900px, 92vw); max-height:90vh; overflow:auto;
  margin:48px auto; background:#fff; border-radius:16px; box-shadow:0 30px 60px rgba(0,0,0,.25); border:1px solid #e7e9ef;
}
.modal__header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #eceff5; }
.modal__header h3 { margin:0; }
.modal__close { border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer; padding:0 6px; }
.modal__body { padding:14px 16px; }
.modal__footer { display:flex; gap:8px; justify-content:flex-end; padding:12px 16px; border-top:1px solid #eceff5; }

.form-grid {
  display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px;
}
.form-grid label { display:flex; flex-direction:column; gap:6px; font-size:14px; }
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid textarea,
.form-grid select {
  height:38px; padding:8px 10px; border:1px solid #d0d4dc; border-radius:10px; outline:none;
}
.form-grid textarea { height:auto; resize:vertical; }
.divider { border:0; border-top:1px solid #e5e7eb; margin-top:12px; }

/* messages */
.msg { padding:8px 12px; border-radius:10px; margin:4px 0; }
.msg.success { background:#eaf7ea; color:#145a18; border:1px solid #bfe7bf; }
.msg.error { background:#fee2e2; color:#7f1d1d; border:1px solid #fecaca; }

/* responsive */
@media (max-width: 720px){
  .client-grid, .form-grid { grid-template-columns: 1fr; }
  .client-item.col-span-2 { grid-column: auto; }
}


/* ===== Report modal layout ===== */
.report-form { display: grid; gap: 12px; }
.report-full { display: flex; flex-direction: column; gap: 6px; }

.report-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.report-form textarea {
  width: 100%;
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
}

/* inputs gelijk aan andere velden */
.report-form input[type="text"] {
  height: 38px;
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}
#duration_display[readonly] {
  background: #f7f7f7;
  color: #444;
}

/* knoppenrij: iets ruimtelijker */
.modal__footer .btn { min-width: 170px; }


.fab--lg { width: 36px; height: 36px; font-size: 18px; }

.row-link { cursor: pointer; }

.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; background:#eef2ff; color:#3730a3; }
.badge--concept { background:#fff7ed; color:#9a3412; } /* oranje */
.badge--final   { background:#ecfdf5; color:#065f46; } /* groen  */


/* ==== Fancy datetime inputs voor rapportage ==== */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.field .hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.input-shell {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 6px 10px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.input-shell:focus-within {
  background: #fff;
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.input-shell.readonly {
  background: #f3f4f6;
}

.input-shell .prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 10px;
  white-space: nowrap;
}

.input-shell input[type="datetime-local"],
.input-shell input[type="text"] {
  border: 0;
  background: transparent;
  padding: 10px 0;
  width: 100%;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

/* Pictogram aan de rechterkant */
.input-shell .icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  opacity: .55;
  flex: 0 0 auto;
}

/* Browser details */
input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
input[type="datetime-local"]::-webkit-datetime-edit { padding: 0 2px; }

/* ============= Date Inputs ============= */
.filter-bar input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  min-width: 160px;

  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* Hover en focus states */
.filter-bar input[type="date"]:hover {
  background: #fff;
  border-color: #c5cad3;
}
.filter-bar input[type="date"]:focus {
  background: #fff;
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
  outline: none;
}

/* Kalender icoon */
.filter-bar input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(40%) sepia(50%) saturate(500%) hue-rotate(190deg);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.filter-bar input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ============= Filterbalk voor employees/details.html ============= */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-row input[type="text"],
.filter-row input[type="date"],
.filter-row input[type="email"],
.filter-row input[type="tel"] {
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  min-width: 180px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.filter-row input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
  outline: none;
}

/* Buttons consistent */
.filter-row .btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 8px 14px;
  font-size: 14px;
  transition: background .2s ease, transform .1s ease;
}

.filter-row .btn:hover {
  transform: translateY(-1px);
}

.filter-row .btn[type="submit"] {
  background: #111;
  color: #fff;
}

.filter-row .btn[type="reset"] {
  background: #b91c1c;
  color: #fff;
}

/* zorg dat ook password inputs dezelfde basis krijgen als text/email */
.form-grid input[type="password"]{
  height:38px; border:1px solid #d0d4dc; border-radius:10px; padding:8px 10px; font-size:14px;
}

/* ===== Footer (center) ===== */
.site-footer{
  margin-top: 32px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex; flex-direction: column;
  margin-top: auto;
  
  
}
.site-footer__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: center;   /* centreren */
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer__brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.site-footer__brand .dot{ opacity: .45; }
.site-footer .link-quiet{
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.site-footer .link-quiet:hover{
  color: #111;
  text-decoration: underline;
}

/* Actieblok onder de velden */
.login-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: stretch; /* knoppen even breed als de inputs */
}

/* Subtiele 'link-knop' */
.forgot-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 0 auto;               /* centreren */
  font-size: .95rem;
  color: #344054;                /* rustig grijs */
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: .5rem;
  transition: background .15s ease, color .15s ease;
}
.forgot-link:hover {
  text-decoration: underline;    /* subtiel accent bij hover */
  background: #f8fafc;           /* heel licht vlakje */
}
