body {
  font-family: 'Inter', sans-serif;
  color: #e2e8f0; /* text-slate-200 */
 background-image: linear-gradient(0.25turn, #fb923c, #a855f7);
 overflow-x: hidden
}
h1, h2, h3 {
  font-family: 'Inter', sans-serif;
}
/* Add a subtle glow to focused inputs */
input[type="number"]:focus {
    box-shadow: 0 0 10px #a855f7; /* Corresponds to Tailwind's sky-500 */
}

/* Panel background like the screenshot */
.metrics-panel {
  background: #f8effb;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #ffffff;
}

/* Row card look */
.metric-row {
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0; /* Add vertical padding */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Add a subtle separator */
}

.metric-row > div { /* This is now a fallback, specific classes are used below */
  padding: 0;
  vertical-align: middle;
  width: 50%;
}

.metric-row:last-child {
  border-bottom: none; /* Remove border from the last row */
  padding-bottom: 0;
}

/* Left cell: metric name */
.metric-label-cell {
  padding: 12px 16px;
  color: #0f172a; /* dark text */
  font-weight: 600;
  background: transparent;
  text-align: left;
  width: 50%;
}

/* Right cell: value "input" look */
.metric-value-cell {
  padding: 10px 14px;
  text-align: right;
  width: 50%;
}

/* Value pill to mimic the styled inputs from the screenshot */
.metric-value {
  display: inline-block;
  width: 100%;
  max-width: 120px;
  margin-left: auto;
  background: #ffffff;
  color: #091126;
  font-weight: 700;
  text-align: right;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(37,99,235,0.08), 0 2px 6px rgba(2,6,23,0.04);
  border: 1px solid #e5e7eb;
  font-variant-numeric: tabular-nums;
}

/* Style for input fields to match the metric-value pill */
input.metric-value {
  -moz-appearance: textfield; /* Firefox */
}
input.metric-value::-webkit-outer-spin-button,
input.metric-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Tooltip Styles --- */
.tooltip-container {
  position: relative;
  display: flex;
  align-items: center;
}

.tooltip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.85rem; /* h-5 */
  width: 0.85rem; /* w-5 */
  border-radius: 9999px; /* rounded-full */
  background-color: rgb(222, 226, 231); /* bg-slate-300 */
  color: #000000; /* text-black */
  font-size: 0.6rem; /* text-xs */
  cursor: help;
  transition: color 0.33s, backgroun
  d-color 0.3s;
}

.tooltip-container:hover .tooltip-icon {
  background-color: #fb923c; /* hover:bg-sky-500 */
  color: #ffffff; /* hover:text-white */
}

.tooltip-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem; /* mb-2 */
  width: 16rem; /* w-64 */
  z-index: 50; /* Ensure it's on top */
  /* Other styles from Tailwind classes */
  background-color: #0f172a; color: #e2e8f0; font-size: 0.875rem; border-radius: 0.5rem; padding: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); border: 1px solid rgba(14, 165, 233, 0.3); opacity: 0; transition: opacity 0.3s; pointer-events: none;
}

.tooltip-container:hover .tooltip-popup {
  opacity: 1;
}

.calculator-container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}



/* Responsive tweaks */
@media (max-width: 640px) {
  .metric-row {
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    padding: 8px 0;
  }
  .metric-label-cell {
    width: 60%; /* Take up more space */
    min-width: 200px; /* Prevent it from getting too squished */
    padding: 8px 12px;
  }
  .metric-value-cell {
    width: 40%;
    min-width: 180px; /* Ensure value and unit have enough space */
    padding: 8px 12px;
  }
}