/* ======================================================
   INSIDE914 – Heat Pump Estimator Styles
   Includes complete dark-mode fixes for the warning box
====================================================== */

#hpApp {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#hpApp .card {
  background: var(--e-global-color-background);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  margin-bottom: 22px;
}

body.dark-mode #hpApp .card {
  background:#1E1E1E !important;
  box-shadow:0 6px 18px rgba(0,0,0,0.4);
}

#hpApp input,
#hpApp select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  margin-top: 8px;
  font-size: 16px;
}

#hpApp button {
  width: 100%;
  padding: 14px;
  background: #2A63F0;
  border: none;
  color: white;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 14px;
  cursor: pointer;
}

#hpApp button.disabled {
  opacity: .4;
  pointer-events: none;
}

.hidden { display:none; }

.spinner {
  width:42px;
  height:42px;
  border:4px solid #ccc;
  border-top-color:#2A63F0;
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin:40px auto;
}

@keyframes spin { to {transform:rotate(360deg);} }

.month-row {
  display: flex;
  align-items: center;
  margin: 6px 0;
}

.month-label {
  width:38px;
  font-size:14px;
  font-weight:600;
}

.month-bar-wrapper {
  flex: 1;
  background: rgba(150,170,255,0.15);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 10px;
  height: 8px;
}

.month-bar {
  height:100%;
  background:#9bb4ff;
  border-radius:6px;
  transition:width .7s;
}

.month-bar.current {
  background:#2A63F0;
}

.result-title {
  font-size:16px;
  font-weight:600;
  margin-bottom:6px;
}

.result-value {
  font-size:18px;
  font-weight:700;
}

/* ======================================================
   WARNING BOX — FIXED FOR LIGHT & DARK MODE
====================================================== */

.hp-warning {
  background:#fff4d6;
  border-left:4px solid #d39b00;
  padding:12px;
  border-radius:10px;
  margin-top:14px;
  font-size:14px;
  color:#4a3f0e; /* light mode text color */
}

body.dark-mode .hp-warning {
  background:#3b3100 !important;       /* deep warm gold/brown */
  border-left-color:#f6c84c !important; /* brighter gold accent */
  color:#ffe7a1 !important;             /* readable warm light text */
}

/* Strong text (title) inside warning box */
.hp-warning strong {
  color:#4a3f0e; /* light mode strong text */
}

body.dark-mode .hp-warning strong {
  color:#ffe7a1 !important; /* dark mode strong text */
}
