/* ====== PCB Thermal Estimator – Styles ====== */
:root {
  --brand: #005A9C;
  --brand-dark: #003f6d;
  --bg: #f4f4f4;
  --card: #ffffff;
  --hint: #e8f0fe;
  --warn: #b00020;
}

#pcb-thermal-estimator {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  padding: 20px;
}

#pcb-thermal-estimator h1 {
  text-align: center;
  color: #333;
  margin: 0 0 16px;
}

.pcbte-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pcbte-card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
  width: 100%;
  max-width: 640px;
  margin-bottom: 20px;
}

.pcbte-card h2 {
  margin-top: 0;
  color: var(--brand);
  font-size: 18px;
}

.pcbte-group { margin-bottom: 14px; }
.pcbte-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.pcbte-group input[type="number"],
.pcbte-group input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.pcbte-group input[type="checkbox"] { margin-right: 6px; }

.pcbte-btn {
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  margin-right: 8px;
}
.pcbte-btn:hover { background: var(--brand-dark); }

.pcbte-results {
  white-space: pre-wrap;
  background: var(--hint);
  border-left: 4px solid var(--brand);
  padding: 10px;
  margin-top: 12px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

#pcbte-chart {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  max-width: 100%;
}

.pcbte-tooltip { position: relative; display: inline-block; margin-left: 6px; }
.pcbte-q {
  background: #e6f0ff;
  border-radius: 999px;
  padding: 0 6px;
  color: #003366;
  font-weight: 700;
  cursor: help;
  font-size: 14px;
  line-height: 1.2;
}
.pcbte-tt {
  visibility: hidden;
  width: 240px;
  background: #fef9e7;
  color: #333;
  text-align: left;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px;
  position: absolute;
  z-index: 2;
  top: -5px;
  left: 110%;
  opacity: 0;
  transition: opacity .25s;
  font-size: 13px;
  box-shadow: 0 0 8px rgba(0,0,0,.06);
}
.pcbte-tooltip:hover .pcbte-tt { visibility: visible; opacity: 1; }

.pcbte-err {
  color: var(--warn);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.pcbte-invalid { border-color: var(--warn) !important; outline: none; }
