body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

h1 {
  margin-top: 0;
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  margin-bottom: 12px;
}

button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  margin-bottom: 16px;
}

button:hover {
  background: #1d4ed8;
}

.result {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 600;
}

.result.neutral {
  background: #e5e7eb;
  color: #111827;
}

.result.high {
  background: #dcfce7;
  color: #166534;
}

.result.medium {
  background: #fef9c3;
  color: #854d0e;
}

.result.low {
  background: #fee2e2;
  color: #991b1b;
}

/* Score bars */
.score-section {
  margin-bottom: 20px;
}

.score-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 8px;
}

.score-bar-container {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.3s ease;
}

/* Opcional: color distinto para Europa */
#scoreBarEU {
  background: #3b82f6;
}

/* Panels */
.panel {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.explanation-list,
.debug-features {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

/* History table */
#historyTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#historyTable th,
#historyTable td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

#historyTable tr:nth-child(even) {
  background: #f9fafb;
}