/* ---------- INPUT SIDE ---------- */

/* grouping blocks */
.input-group {
  margin-bottom: 18px;
}

/* header with actions */
.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 6px;
}

/* action buttons (All / None) */
.input-actions button {
  font-size: 0.75rem;
  padding: 2px 6px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.input-actions button:hover {
  border-color: #2f6fdd;
  color: #2f6fdd;
}

/* country list grid */

.country-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 6px;    /* ✅ smaller vertical space */
}


/* each country row */

.country-list label {
  display: grid;
  grid-template-columns: 18px 1fr;  /* ✅ forces alignment */
  align-items: center;
  gap: 6px;

  font-size: 0.9rem;
  padding: 2px 4px;                 /* ✅ tighter spacing */
}


/* hover state */

.country-list label:hover {
  background: #f4f7fc;
  border-radius: 4px;
}


/* checkbox scaling */

.country-list input {
  margin: 0;              /* ✅ removes weird shifts */
  transform: scale(1.0);  /* ✅ consistent size */
}



/* ---------- RESULTS SIDE ---------- */

/* each country block */
.result-group {
  margin-bottom: 14px;
}

/* label + value row */
.result-row {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 4px;
}

/* bar container */
.result-bar-container {
  background: #e6ebf2;
  border-radius: 6px;
  overflow: hidden;
  height: 8px;
}

/* bar */
.result-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
}


/* ---------- COLOR SYSTEM ---------- */

.bar-high {
  background: #4caf50;
}

.bar-mid {
  background: #e0a800;
}

.bar-low {
  background: #d9534f;
}


/* ---------- CONTEXT + INSIGHT ---------- */

.context-note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

#insight {
  margin-top: 12px;
  font-weight: 500;
}