/* ============================================================
   IntSys — Gedeelde design system
   Canonical bron: intsys.nl/index.html
   Gebruik: <link rel="stylesheet" href="/css/intsys.css">
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Primaire palet — IntSys Blauw */
  --blue:        #0057B8;
  --blue-lt:     #1A6ED4;
  --blue-xlt:    #E8F1FC;
  --blue-deep:   #003A80;
  --blue-darker: #001E50;

  /* Accent — IntSys Oranje */
  --accent:    #FF6B00;
  --accent-lt: #FFF0E6;

  /* Semantisch groen */
  --green:    #00A86B;
  --green-lt: #E6F7F2;

  /* Semantisch rood */
  --red:    #DC2626;
  --red-lt: #FEF2F2;

  /* Semantisch geel/waarschuwing */
  --yellow:    #D97706;
  --yellow-lt: #FEF3C7;

  /* Semantisch oranje/actie */
  --orange:      #E67800;
  --orange-dark: #CC6A00;

  /* Tekst */
  --text:      #0D1B2E;
  --text-mid:  #3A4D63;
  --text-mute: #8097B1;

  /* Vlakken & randen */
  --border: #D0DFF0;
  --bg:     #F4F7FD;
  --white:  #FFFFFF;

  /* Schaduwen */
  --shadow:    0 2px 16px rgba(0, 87, 184, .08);
  --shadow-lg: 0 8px 40px rgba(0, 87, 184, .14);

  /* Radius */
  --r:    12px;
  --r-lg: 18px;
  --r-sm: 8px;
  --r-xs: 6px;

  /* Typografie */
  --font:            'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-condensed:  'Barlow Condensed', 'Barlow', sans-serif;
}

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

/* === BASIS === */
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   WOORDMERK / WORDMARK
   HTML: <span class="wordmark">Int<span>Sys</span></span>
   of:   <a class="wordmark" href="/">Int<span>Sys</span></a>
   ============================================================ */
.wordmark {
  font-family: var(--font-condensed);
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: -.3px;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
}
.wordmark span {
  color: var(--accent);
}

/* Groottes */
.wordmark-sm  { font-size: 20px; }
.wordmark-md  { font-size: 24px; }
.wordmark-lg  { font-size: 30px; }
.wordmark-xl  { font-size: 38px; }

/* Op donkere achtergrond */
.wordmark-on-dark {
  color: white;
}
.wordmark-on-dark span {
  color: var(--accent);
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-condensed);
  line-height: 1.1;
}

.page-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 4px;
}

.page-sub {
  font-size: 14px;
  color: var(--text-mute);
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   KNOPPEN
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  line-height: 1;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 87, 184, .22);
}
.btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 4px 16px rgba(0, 87, 184, .30);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 0, .22);
}
.btn-accent:hover {
  background: #e05e00;
  box-shadow: 0 4px 16px rgba(255, 107, 0, .30);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
}
.btn-ghost:hover {
  color: var(--blue);
  background: var(--blue-xlt);
}

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }

/* ============================================================
   FORMULIER ELEMENTEN
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

label, .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=search],
textarea,
select,
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=search]:focus,
textarea:focus,
select:focus,
.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-xlt);
}

/* ============================================================
   KAARTEN / CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tag-blue   { background: var(--blue-xlt);  color: var(--blue); }
.tag-orange { background: var(--accent-lt); color: var(--accent); }
.tag-green  { background: var(--green-lt);  color: var(--green); }
.tag-red    { background: var(--red-lt);    color: var(--red); }
.tag-yellow { background: var(--yellow-lt); color: var(--yellow); }

/* ============================================================
   MELDING / ALERT
   ============================================================ */
.alert {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.5;
}
.alert-error {
  background: var(--red-lt);
  border: 1px solid #fca5a5;
  color: var(--red);
}
.alert-success {
  background: var(--green-lt);
  border: 1px solid #6ee7b7;
  color: var(--green);
}
.alert-warning {
  background: var(--yellow-lt);
  border: 1px solid #fde68a;
  color: var(--yellow);
}
.alert-info {
  background: var(--blue-xlt);
  border: 1px solid #93c5fd;
  color: var(--blue-deep);
}

/* ============================================================
   ADMIN TOPBAR
   ============================================================ */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-user {
  font-size: 13px;
  color: var(--text-mute);
}

.topbar-logout {
  font-size: 13px;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.topbar-logout:hover { text-decoration: underline; }

/* ============================================================
   LAYOUT UTILS
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ============================================================
   MODAL / DIALOG
   Gebruik: isModal.alert('Titel', 'Tekst')
            isModal.confirm('Titel', 'Tekst').then(ok => { ... })
   ============================================================ */
.is-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 46, .45);
  backdrop-filter: blur(4px);
  animation: isModalFadeIn .2s ease both;
}
@keyframes isModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.is-modal {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 440px;
  overflow: hidden;
  animation: isModalSlideUp .25s ease both;
}
@keyframes isModalSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.is-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.is-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.is-modal-brand svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.is-modal-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  line-height: 1.2;
}
.is-modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-mute);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.is-modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.is-modal-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
}
.is-modal-body p { margin-bottom: 8px; }
.is-modal-body p:last-child { margin-bottom: 0; }

.is-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
}

/* ============================================================
   GOOGLE FONTS — voeg toe aan <head> van elke pagina:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800;900&display=swap" rel="stylesheet">
   ============================================================ */
