/* ------------------------------
   Base layout
------------------------------ */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f7f9fb;
  color: #222;
  margin: 0;
  padding: 2rem 0;
  line-height: 1.5;
}
@media (min-width: 768px) {
	body {padding: 2rem;}
}

/* Language hiding logic */
body.lang-nl [data-lang="fr"] {
  display: none !important;
}

body.lang-fr [data-lang="nl"] {
  display: none !important;
}

/* Language Switcher Styling */
.lang-switcher {
  text-align: right;
  margin-bottom: 10px;
}

.lang-switcher button {
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
}

.lang-switcher button.active {
  background: #007bff;
  color: white;
  font-weight: bold;
  border-color: #007bff;
}

/* Collapsible Info Panel Styling */
.info-panel {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  background-color: #fcfcfc;
  max-width: 1200px;
  margin: 0 auto;
}

.info-panel summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  margin-bottom: 1rem
}

/* Custom arrow for summary */
.info-panel summary::-webkit-details-marker {
  display: none;
}

.info-panel summary::before {
  content: '▶';
  font-size: 0.8em;
  display: inline-block;
  transition: transform 0.2s;
  margin-right: 8px;
}

.info-panel[open] summary::before {
  transform: rotate(90deg);
}

/* ------------------------------
   Search box + button
------------------------------ */
.searchbox {
  text-align: center;
  font-size: 14px;
}
.searchbar {
  padding: 6px 12px;
  width: 50%;

  font-size: 18px;
  line-height: 32px;
  min-height: unset;
  
  color: #575756;
  background-color: lightgoldenrodyellow;
  border-radius: 50px;
  border: 1px solid #575756;
  transition: all 250ms ease-in-out;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.searchbar::placeholder {
  color: color(#575756 a(0.8));
  content: 'Search';
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.searchbar:hover, .searchbar:focus {
  outline: 0;
  border: 1px solid transparent;
  border-bottom: 1px solid #575756;
  border-radius: 0;
  background-position: 100% center;
}

#searchButton {
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 100%;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 10px;
  margin: 10px;
}

.searchbox button {
	padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.searchbox button:hover {
    opacity: 0.8;
}

/* ------------------------------
   Filter buttons for nomenclature
------------------------------ */
/* Base Filter Button */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #b9d0e7;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #e6eef6;
  color: #034078;
}

.region-filters .filter-btn {
  padding: 0.25rem 0.5rem;
}

.filter-btn:hover {
  background-color: #d8e7f4;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Category Color Variants (optional visual cues) */
.filter-btn[data-class="ALLOWED"] {
  background-color: #e9f7ef;
  border-color: #b4dfc3;
  color: #155724;
}

.filter-btn[data-class="ALLOWED"].active {
  background-color: #34a853;
  color: #fff;
  border-color: #34a853;
}

.filter-btn[data-class="FORBIDDEN"] {
  background-color: #fdecea;
  border-color: #f5c2c2;
  color: #7f1d1d;
}

.filter-btn[data-class="FORBIDDEN"].active {
  background-color: #d93025;
  color: #fff;
  border-color: #d93025;
}

.filter-btn[data-class="OTHER"] {
  background-color: #fff6e5;
  border-color: #f2d9a6;
  color: #7c4100;
}

.filter-btn[data-class="OTHER"].active {
  background-color: #fbbc04;
  color: #fff;
  border-color: #fbbc04;
}

/* Neutral (Show All / Regions) */
.filter-btn[data-class="ALL"],
.filter-btn[data-region] {
  background-color: #e6eef6;
  border-color: #b9d0e7;
  color: #034078;
}

.filter-btn.active {
  background-color: #0077cc;
  border-color: #0077cc;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
   Download button
------------------------------ */
.download-btn {
  float:right;
  padding: 0.6rem 1.1rem;
  background: #009879;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
}

.download-btn:hover {
  background: #007f63;
}

/* ------------------------------
   Table styling
------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

thead {
  background-color: #0077cc;
  color: white;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

tbody tr:hover {
  background-color: #f2f8fc;
  transition: background-color 0.15s;
}

th:first-child, td:first-child {
  border-left: none;
}

th:last-child, td:last-child {
  border-right: none;
}

/* Alternate row shading for readability */
tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* ------------------------------
   Colored bands for nomenclature
------------------------------ */
#resultTable tr.green {
  background-color: #e9f7ef;  /* soft mint green */
  color: #155724;
  border-left: 4px solid #38a169;
}

#resultTable tr.red {
  background-color: #fdecea;  /* light rose */
  color: #7f1d1d;
  border-left: 4px solid #e53e3e;
}

#resultTable tr.orange {
  background-color: #fff6e5;  /* warm light amber */
  color: #7c4100;
  border-left: 4px solid #ed8936;
}

/* ------------------------------
   Table links (first column)
------------------------------ */
#resultTable td:first-child a {
  color: #0366d6;                 /* modern blue, softer than default */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.1s ease;
}

#resultTable td:first-child a:hover {
  color: #004a99;                 /* darker on hover */
  text-decoration: underline;
  transform: translateY(-1px);
}

#resultTable td:first-child a:visited {
  color: #5a4fcf;                 /* muted purple for visited */
}

#resultTable td:first-child a:focus {
  outline: 2px solid #80bfff;     /* accessible focus ring */
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------
   Misc text and spacing
------------------------------ */
#updateDate {
  text-align: left;
  font-weight:bold;
  display:inline-block;
  color: #444;
  margin-bottom: 1rem;
}

ul {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  list-style: disc inside;
  width: fit-content;
  margin: 0;
}

ul li {
  margin-bottom: 0.5rem;
}

p {
  max-width: 900px;
  margin: 0.5rem auto;
}

.subtext {
  margin-left: 2.5rem;      /* same indent as list text */
  margin-bottom: 0.5rem;
  text-indent: 0;
  color: #444;             /* optional: slightly lighter tone */
  font-size: 0.95em;
}

.biggap {
  display: inline-block;
  margin-bottom: 0.5em;
}
