* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  background: #e6e6ea;
  color: #1f2937;
  font-size: 14px;
}

/* HEADER */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1px 20px;
  background: #fff;
  position: relative;
  border-bottom: 2px solid #ddd;
}

.back-link {
  padding: 6px 12px;
  background: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.title-icon {
  width: 30px;
}

/* CONTENT */
.content {
  padding: 12px 16px;
  font-size: medium;
}


/* INSTRUCTIONS */
.instructions {
  padding: 1px 18px 18px;
  margin-bottom: 12px;
}

.instructions h2 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.instructions p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}


/* GRID */
.drops-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: start;
}

/* CALC BOX */
.calc-box {
  background: #fff;
  border-radius: 12px;
  padding: 1px 16px 16px 16px;
  border: 1px solid #d1d5db;
}

.calc-box h3 {
  margin-top: 0 0 10px o;
  font-size: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

input, select {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  font-size: 13px;
}

button {
  margin-top: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.result-box {
  margin-top: 10px;
  font-size: 15px;
}

/* BODY BOX */
.body-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1px 22px;
  border: 2px solid #cfd4dc;
}

.body {
  position: relative;
  height: 320px;
  margin: 20px auto;
  width: 120px;
}

/* BODY ZONES */
.zone {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  background: #e5e7eb;
}

.zone:hover {
  background: #fecaca;
}

.head { top: 0; }
.chest { top: 120px; }
.legs { top: 220px; }

.zone-info {
  margin-top: 10px;
  font-size: 15px;
  min-height: 60px;
}
.zone-result-box {
  margin-top: 10px;
  padding: 10px 12px;

  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-left: 5px solid #6b7280;

  border-radius: 8px;

  font-size: 14px;
  line-height: 1.4;
  color: #111827;

  min-height: 72px;
}
.svg-body {
  width: 380px;
  height: auto;
  max-height: 435px;
  display: block;
  margin: 0 auto;
}
/* ===== DROPS SEVERITY COLORS ===== */
.zone.low {
  fill: #86efac; /* green */
}

.zone.medium {
  fill: #fde047; /* yellow */
}

.zone.high {
  fill: #f87171; /* red */
}

/* Caixa de resultado acompanha severidade */
.zone-result-box.low {
  border-left-color: #16a34a;
}

.zone-result-box.medium {
  border-left-color: #ca8a04;
}

.zone-result-box.high {
  border-left-color: #b91c1c;
}
.refs-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #2c3e50;
  color: #fff;
}
.hidden {
  display: none;
}
/* ================= REFERENCES MODAL ================= */

.refs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.refs-content {
  background: #ffffff;
  max-width: 640px;
  width: 90%;
  padding: 24px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);

  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

.refs-content h2 {
  margin-top: 0;
  font-size: 20px;
}

.refs-content h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 16px;
}

.refs-content ul {
  padding-left: 18px;
}

.refs-content li {
  margin-bottom: 12px;
}

.refs-content a {
  color: #2563eb;
  text-decoration: none;
}

.refs-content a:hover {
  text-decoration: underline;
}

.refs-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #374151;
}

.refs-close:hover {
  color: #000;
}

.refs-note {
  margin-top: 20px;
  font-size: 12px;
  color: #4b5563;
}
.refs-modal.hidden {
  display: none;
}
