* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b0b0b;
  color: #ffffff;
}

.header {
  position: sticky;
  top: 0;
  background: #000;
  padding: 16px 20px;
  border-bottom: 1px solid #222;
}

.header h1 {
  margin: 0 0 6px 0;
  font-size: 18px;
}

.meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  opacity: 0.8;
}

.container {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 14px;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
}

select, button {
  background: #0b0b0b;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 10px;
}

button {
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid #222;
  font-size: 13px;
}

thead th {
  border-top: none;
  font-size: 12px;
  opacity: 0.85;
}

/* Layout */
.legend {
    font-size: 12px;
    display: 100px;
    flex-direction: column;
    gap: 16px;
}

/* Section container */
.legend-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Grid row for label and color boxes */
.legend-row {
    display: grid;
    grid-template-columns: 260px auto;
    align-items: center;
}

/* Color boxes next to each other */
.legend-values {
    display: flex; /* Flexbox to align color boxes next to each other */
    gap: 12px; /* Space between color boxes */
    align-items: center; /* Align color boxes vertically */
}

/* Color box */
.legend-box {
    width: 20px; /* Fixed width for consistency */
    height: 20px; /* Fixed height for consistency */
    border: 1px solid #000;
    margin: 0; /* Remove any margins */
}

/* Colors */
.blue {
    background-color: #1f4ed8;
}

.green {
    background-color: #22c55e;
    margin-left: 12px; /* Push green boxes to the right */
}

.red {
    background-color: #ef4444;
}

.legend-pair {
    display: flex;
    align-items: center;
}

.legend-table .blue,
.legend-table .green {
    display: flex;  /* Ensure both blue and green boxes are flex items */
    align-items: center; /* Center them vertically within their container */
}




