* {
  box-sizing: border-box;
}

body.laws-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937, #020617 55%);
  color: #e5e7eb;
}

/* Header */
.laws-header {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  padding: 28px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.6);
}

.laws-header-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.laws-header h1 {
  margin: 0;
  font-size: 30px;
  color: #f9fafb;
}

.laws-header p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #e5e7eb;
}

/* Main layout */
.laws-main {
  max-width: 1000px;
  margin: 22px auto 30px;
  padding: 0 16px;
}

/* Card base */
.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
  margin-bottom: 18px;
  padding: 16px 18px 18px;
}

/* Controls */
.laws-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.controls-left,
.controls-right {
  flex: 1;
  min-width: 220px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #9ca3af;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-group input::placeholder {
  color: #6b7280;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
  background: rgba(15, 23, 42, 0.96);
}

/* Lawbook cards */
.lawbook-card {
  padding: 0;
}

.lawbook-header {
  padding: 14px 16px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.lawbook-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #f9fafb;
}

.lawbook-desc {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.toggle-articles {
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 12px;
  font-size: 13px;
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s, border 0.15s, transform 0.08s;
}

.toggle-articles:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(59, 130, 246, 0.9);
  transform: translateY(-1px);
}

.lawbook-body {
  padding: 12px 16px 14px;
}

/* Table */
.law-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.law-table th,
.law-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  vertical-align: top;
}

.law-table th {
  text-align: left;
  font-weight: 600;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.95);
}

.law-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.9);
}

.col-artikel {
  width: 120px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.6);
  font-size: 12px;
}

/* Empty state */
.empty-state {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}

/* Footer */
.laws-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #6b7280;
}
/* Home button */
.top-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e5e7eb;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.home-button:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}


.search-results {
    margin-bottom: 1.5rem;
}

.search-result-item {
    list-style: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-link {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.search-result-title span {
    opacity: 0.8;
    font-size: 0.9rem;
}

.search-result-snippet {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.law-row.highlighted {
    outline: 2px solid rgba(255,255,255,0.4);
    outline-offset: 2px;
}
/* Zoekresultaten container */
.search-results {
    background: var(--card-bg, #0f172a);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Resultaten lijst */
#search-results-list {
    padding: 0;
    margin-top: 1rem;
}

/* Item */
.search-result-item {
    list-style: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Klikbaar gebied */
.search-result-link {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-color, #d1d5db); /* FIX: tekst niet meer wit */
}

/* Titel */
.search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #e2e8f0); /* FIX: kleur */
}

/* Artikelnummer */
.search-result-title span {
    color: var(--primary-color, #3b82f6); /* Mooie primary kleur */
    font-weight: 500;
}

/* Snippet */
.search-result-snippet {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8); /* FIX: niet wit maar subtiel */
    margin-top: 0.25rem;
    line-height: 1.4;
}
