/* Lefief Logistiek — Shared Design System */

:root {
  --ll-navy: #1a2332;
  --ll-accent: #2e86de;
  --ll-accent-hover: #2577c9;
  --ll-bg: #f5f7fa;
  --ll-surface: #ffffff;
  --ll-border: #dde3ec;
  --ll-text: #1a2332;
  --ll-muted: #5a6a7e;
  --ll-success: #27ae60;
  --ll-danger: #e74c3c;
  --ll-warning: #f39c12;
  --ll-radius: 8px;
  --ll-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --ll-shadow-md: 0 2px 8px rgba(0,0,0,0.10);
  --ll-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ll-mono: 'Consolas', 'Monaco', monospace;
  --ll-max-width: 960px;
  --ll-max-width-wide: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--ll-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ll-text);
  background: var(--ll-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > .ll-main,
body > main,
body > .ll-page-content {
  flex: 1;
}

/* ── Header ── */

.ll-header {
  background: var(--ll-navy);
  color: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ll-header-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ll-header-brand:hover {
  opacity: 0.9;
}

.ll-header-brand span {
  color: var(--ll-accent);
}

.ll-header-title {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

.ll-header nav {
  display: flex;
  gap: 6px;
}

.ll-header nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--ll-radius);
  transition: background 0.15s, color 0.15s;
}

.ll-header nav a:hover,
.ll-header nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ── Main content ── */

.ll-main {
  max-width: var(--ll-max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.ll-main.wide {
  max-width: var(--ll-max-width-wide);
}

/* ── Cards ── */

.ll-card {
  background: var(--ll-surface);
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius);
  box-shadow: var(--ll-shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.ll-card.accent-left {
  border-left: 3px solid var(--ll-accent);
}

.ll-card.success-left {
  border-left: 3px solid var(--ll-success);
}

.ll-card.warning-left {
  border-left: 3px solid var(--ll-warning);
}

.ll-card.danger-left {
  border-left: 3px solid var(--ll-danger);
}

/* ── Typography ── */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ll-text);
}

h1 { font-size: 26px; }
h2 { font-size: 21px; margin-top: 32px; }
h3 { font-size: 17px; margin-top: 24px; }

.ll-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ll-muted);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ll-border);
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--ll-accent);
  text-decoration: none;
}

a:hover {
  color: var(--ll-accent-hover);
}

/* ── Badges ── */

.ll-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
}

.ll-badge.navy    { background: var(--ll-navy); color: #fff; }
.ll-badge.accent  { background: #e8f2fc; color: var(--ll-accent); }
.ll-badge.success { background: #e8f8f0; color: var(--ll-success); }
.ll-badge.warning { background: #fef6e8; color: #b37a00; }
.ll-badge.danger  { background: #fde8e8; color: var(--ll-danger); }
.ll-badge.muted   { background: #eef1f5; color: var(--ll-muted); }

/* ── Buttons ── */

.ll-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ll-font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border: none;
  border-radius: var(--ll-radius);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.ll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ll-btn.primary {
  background: var(--ll-accent);
  color: #fff;
}

.ll-btn.primary:hover:not(:disabled) {
  background: var(--ll-accent-hover);
}

.ll-btn.secondary {
  background: #eef1f5;
  color: var(--ll-text);
}

.ll-btn.secondary:hover:not(:disabled) {
  background: #dde3ec;
}

.ll-btn.success {
  background: var(--ll-success);
  color: #fff;
}

.ll-btn.success:hover:not(:disabled) {
  background: #219a52;
}

.ll-btn.danger {
  background: var(--ll-danger);
  color: #fff;
}

.ll-btn.danger:hover:not(:disabled) {
  background: #c0392b;
}

.ll-btn.outline {
  background: transparent;
  border: 1px solid var(--ll-border);
  color: var(--ll-text);
}

.ll-btn.outline:hover:not(:disabled) {
  background: #f5f7fa;
  border-color: #c0c8d4;
}

.ll-btn.sm {
  font-size: 12px;
  padding: 5px 12px;
}

.ll-btn.lg {
  font-size: 16px;
  padding: 12px 24px;
}

/* ── Tabs ── */

.ll-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ll-border);
  margin-bottom: 24px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ll-tabs::-webkit-scrollbar {
  display: none;
}

.ll-tab {
  font-family: var(--ll-font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: none;
  background: none;
  color: var(--ll-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.ll-tab:hover {
  color: var(--ll-text);
}

.ll-tab.active {
  color: var(--ll-accent);
  border-bottom-color: var(--ll-accent);
}

.ll-tab-panel {
  display: none;
}

.ll-tab-panel.active {
  display: block;
}

/* ── Forms ── */

.ll-input,
.ll-select,
.ll-textarea {
  font-family: var(--ll-font);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius);
  background: var(--ll-surface);
  color: var(--ll-text);
  width: 100%;
  transition: border-color 0.15s;
}

.ll-input:focus,
.ll-select:focus,
.ll-textarea:focus {
  outline: none;
  border-color: var(--ll-accent);
  box-shadow: 0 0 0 3px rgba(46,134,222,0.12);
}

.ll-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ll-text);
}

/* ── Tables ── */

.ll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ll-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ll-muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--ll-border);
}

.ll-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ll-border);
}

.ll-table tr:last-child td {
  border-bottom: none;
}

/* ── Alerts / Callouts ── */

.ll-alert {
  padding: 14px 18px;
  border-radius: var(--ll-radius);
  font-size: 14px;
  margin-bottom: 16px;
  border-left: 3px solid;
}

.ll-alert.info {
  background: #e8f2fc;
  border-color: var(--ll-accent);
  color: #1a5a9e;
}

.ll-alert.success {
  background: #e8f8f0;
  border-color: var(--ll-success);
  color: #1a6b3e;
}

.ll-alert.warning {
  background: #fef6e8;
  border-color: var(--ll-warning);
  color: #8a5d00;
}

.ll-alert.danger {
  background: #fde8e8;
  border-color: var(--ll-danger);
  color: #922020;
}

/* ── Progress bar ── */

.ll-progress {
  height: 6px;
  background: #eef1f5;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ll-progress-bar {
  height: 100%;
  background: var(--ll-accent);
  border-radius: 3px;
  transition: width 0.3s;
}

.ll-progress-bar.success { background: var(--ll-success); }

/* ── Modal ── */

.ll-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.ll-modal {
  background: var(--ll-surface);
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.ll-modal h2 {
  margin-top: 0;
  font-size: 20px;
}

/* ── Footer ── */

.ll-footer {
  background: var(--ll-navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 16px 24px;
  font-size: 13px;
  margin-top: auto;
}

.ll-footer a {
  color: rgba(255,255,255,0.7);
}

.ll-footer a:hover {
  color: #fff;
}

.ll-footer-lpd {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.ll-footer-lpd a {
  color: rgba(255,255,255,0.5);
}

.ll-footer-lpd a:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Grid utilities ── */

.ll-grid {
  display: grid;
  gap: 20px;
}

.ll-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ll-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ll-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Utility classes ── */

.ll-text-muted { color: var(--ll-muted); }
.ll-text-accent { color: var(--ll-accent); }
.ll-text-success { color: var(--ll-success); }
.ll-text-danger { color: var(--ll-danger); }
.ll-text-center { text-align: center; }
.ll-text-sm { font-size: 13px; }
.ll-text-xs { font-size: 11px; }
.ll-mt-0 { margin-top: 0; }
.ll-mb-0 { margin-bottom: 0; }
.ll-mb-sm { margin-bottom: 8px; }
.ll-mb-md { margin-bottom: 16px; }
.ll-mb-lg { margin-bottom: 32px; }
.ll-flex { display: flex; }
.ll-flex-center { display: flex; align-items: center; }
.ll-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ll-gap-sm { gap: 8px; }
.ll-gap-md { gap: 16px; }
.ll-hidden { display: none; }

/* ── Responsive ── */

@media (max-width: 768px) {
  .ll-header {
    padding: 0 16px;
    height: 50px;
  }

  .ll-header-title {
    display: none;
  }

  .ll-main {
    padding: 20px 16px 40px;
  }

  .ll-grid.cols-2,
  .ll-grid.cols-3,
  .ll-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .ll-tabs {
    gap: 0;
  }

  .ll-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ll-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
}

/* ── Print ── */

@media print {
  .ll-header,
  .ll-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .ll-header {
    position: static;
    border-bottom: 2px solid #000;
  }

  .ll-header-brand span {
    color: #000 !important;
  }

  .ll-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .ll-btn,
  .ll-tabs {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 12pt;
  }

  .ll-main {
    max-width: 100%;
    padding: 0;
  }
}
