/* ======================================================
   Inside914 – Natural Gas Heating Cost & Usage Calculator
====================================================== */

#gas-app {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--e-global-color-text);
}

#gas-app .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 #gas-app .card {
  background:#1E1E1E !important;
  box-shadow:0 6px 18px rgba(0,0,0,0.45);
}

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

body.dark-mode #gas-app input,
body.dark-mode #gas-app select {
  background:#111;
  border-color:#333;
  color:white;
}

#gas-app 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;
}

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

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

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

.hidden { display:none; }

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

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

/* CHART */
.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: linear-gradient(90deg,#b8c8ff,#a7b7ff);
  border-radius: 6px;
  width: 0%;
  transition: width 0.8s ease;
}

.month-bar.current {
  background: linear-gradient(90deg,#2A63F0,#1d4fe3);
  box-shadow: 0 0 6px rgba(42,99,240,0.4);
}

.month-value {
  width: 50px;
  font-size: 13px;
  text-align:right;
  opacity:.75;
}

body.dark-mode .month-bar-wrapper {
  background:rgba(255,255,255,0.08);
}

body.dark-mode .month-bar {
  background:linear-gradient(90deg,#435599,#5567cc);
}

body.dark-mode .month-bar.current {
  background:linear-gradient(90deg,#3f7aff,#1f5af7);
  box-shadow:0 0 8px rgba(63,122,255,0.7);
}
