#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6a21, #ff8c42);
  transition: width 0.6s ease;
}

.debt-item {
  margin-top: 12px;
}

.bmi-bar {
  height: 12px;
  background: #eee;
  border-radius: 20px;
  margin: 15px 0;
  overflow: hidden;
}
.bmi-progress {
  height: 100%;
  width: 0%;
  border-radius: 20px;
  transition: width 0.4s ease, background 0.4s ease;
}
.calc-result-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}
.calc-btn-primary,
.calc-btn-secondary {
  appearance: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
    transform 0.15s ease;
}
.calc-btn-primary {
  background: #ff6a21;
  color: #fff;
  font-weight: 600;
}
.calc-btn-primary:hover {
  background: #e85b18;
  transform: translateY(-1px);
}
.calc-btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgb(255 106 33 / 0.35);
}
.calc-btn-secondary {
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 500;
}
.calc-btn-secondary:hover {
  background: #cbd5e1;
}
.calc-btn-secondary.active {
  background: #ff6a21;
  color: #fff;
}
.calc-btn-secondary:focus-visible {
  box-shadow: 0 0 0 3px rgb(148 163 184 / 0.35);
}
.calc-btn-primary:disabled,
.calc-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.calc-group input[type="number"],
.calc-group select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}
.calc-group input[type="number"]:focus-visible,
.calc-group select:focus-visible {
  border-color: #ff6a21;
  box-shadow: 0 0 0 3px rgb(255 106 33 / 0.2);
  outline: none;
}
.calc-group select {
  padding-right: 36px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%2364748b' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7l4.5 5 4.5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  appearance: none;
}
.calc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.calc-subtitle {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}
.calc-toggle {
  display: flex;
  gap: 10px;
}
.toggle-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: 0.25s;
}
.toggle-btn.active {
  background: #ff6a21;
  color: #fff;
  border-color: #ff6a21;
}
.activity-grid,
.goal-grid {
  display: grid;
  gap: 12px;
}
.activity-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.goal-grid {
  grid-template-columns: repeat(3, 1fr);
}
.activity-card,
.goal-card {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
  font-weight: 600;
}
.activity-card.active {
  background: #0f172a;
  color: #fff;
}
.goal-card.active {
  background: #ff6a21;
  color: #fff;
}
.result-card {
  margin-top: 30px;
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
}
.result-big {
  font-size: 42px;
  font-weight: 700;
  color: #ff6a21;
  margin-bottom: 16px;
}
.result-grid {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}
.result-grid span {
  display: block;
  font-size: 13px;
  opacity: 0.7;
}
.macro-section {
  margin-top: 25px;
}
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.macro-card {
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
}
.protein {
  background: #16a34a20;
}
.carbs {
  background: #2563eb20;
}
.fats {
  background: #f9731620;
}
.urine-color {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  border: 2px solid #fff0;
}
.urine-color.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: #0f172a;
}


@media (min-width: 768px) {
  .calc-grid-compact {
    grid-template-columns: repeat(4, 1fr);
  }

  .calc-block {
    padding: 12px;
  }
}



.calc-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

/* grouped blocks */
.calc-block {
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
}

/* tighter labels */
.calc-block label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
  display: block;
}

/* tighter inputs */
.calc-block input,
.calc-block select {
  padding: 9px 11px;
  font-size: 13px;
  border-radius: 8px;
}

/* hover polish */
.calc-block:hover {
  border-color: #e2e8f0;
  background: #ffffff;
  transition: 0.25s ease;
}     



/* Container polish */
.calc-container {
    max-width: 1100px;
    margin: 5px auto;
    
}

/* Card redesign */
.calc-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.06),
    0 2px 6px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

/* subtle top accent for brand authority */
.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff6a21, #ff8c42);
}

/* Typography */
.calc-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

/* Inputs upgraded */
.calc-group input,
.calc-group select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  font-size: 14px;
  transition: all 0.25s ease;
}

.calc-group input:hover,
.calc-group select:hover {
  border-color: #cbd5e1;
}

.calc-group input:focus,
.calc-group select:focus {
  background: #fff;
  border-color: #ff6a21;
  box-shadow: 0 0 0 3px rgba(255,106,33,0.15);
}

/* Toggle buttons premium feel */
.calc-toggle {
  display: flex;
  gap: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid transparent;
  font-weight: 600;
  color: #475569;
  transition: all 0.25s ease;
}

.toggle-btn:hover {
  background: #e2e8f0;
}

.toggle-btn.active {
  background: #ff6a21;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,106,33,0.25);
}

/* Buttons stronger presence */
.calc-btn-row {
  display: flex;
  gap: 12px;
}

.calc-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #ff6a21, #ff8c42);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(255,106,33,0.25);
}

.calc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,106,33,0.35);
}

.calc-btn-secondary {
    flex: 1;
    background: #2a43a8;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
	margin-top:5px;
}

.empty-state {
  text-align: center;
  padding: 30px 15px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.calc-btn-secondary:hover {
  background: #e2e8f0;
}

/* Result card premium glass feel */
.result-card {
  margin-top: 28px;
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
  box-shadow: 0 15px 40px rgba(15,23,42,0.35);
}

/* Big result emphasis */
.result-big {
  font-size: 44px;
  font-weight: 700;
  color: #ff8c42;
  letter-spacing: 0.5px;
}

/* Hydration bar smoother */
#hydrationBar {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* Urine color improved interaction */
.urine-color {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.urine-color:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.urine-color.active {
  opacity: 1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #0f172a;
}

/* Grid spacing refinement */
.calc-grid-2 {
  gap: 18px;
}

/* subtle micro interactions */
button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}




.result-card {
  margin-top: 22px;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* top section tighter */
.result-top {
  text-align: center;
  margin-bottom: 10px;
}

.result-big {
  font-size: 38px;
  font-weight: 700;
  color: #ff8c42;
}

.result-big span {
  font-size: 18px;
  opacity: 0.7;
}

/* chips instead of boring text */
.result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 10px 0 12px;
}

.result-chips span {
  background: rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  opacity: 0.85;
}

/* progress */
.progress-wrap {
  margin: 10px 0 14px;
}

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

#hydrationBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width .8s ease;
}

/* schedule compact grid */
.schedule {
  margin-top: 10px;
}

.schedule-title {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0.8;
  margin-bottom: 6px;
}

.schedule-grid {
  display: grid;
  
  gap: 6px 10px;
  font-size: 12px;
}

.schedule-grid div {
  background: rgba(255,255,255,0.06);
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
}

/* hydration bottom */
.hydration-footer {
  margin-top: 14px;
  text-align: center;
}

.urine-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.urine-color {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  opacity: 0.5;
  transition: 0.25s;
}

.urine-color.active {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #fff;
}

.hydration-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
} 



.calc-details {
  
  margin: 40px auto;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: #1e293b;
}

/* Paragraphs */
.calc-details p {
  margin-bottom: 18px;
  color: #334155;
}

/* Headings */
.calc-details h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.calc-details h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #1e293b;
}

/* Lists */
.calc-details ul,
.calc-details ol {
  margin: 16px 0 18px 18px;
}

.calc-details li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* Strong text */
.calc-details strong {
  color: #0f172a;
  font-weight: 600;
}

/* Links */
.calc-details a {
  color: #ff6a21;
  text-decoration: none;
  font-weight: 500;
}

.calc-details a:hover {
  text-decoration: underline;
}

/* Blockquote (for highlights) */
.calc-details blockquote {
  margin: 20px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-left: 4px solid #ff6a21;
  border-radius: 8px;
  font-style: italic;
  color: #475569;
}

/* Tables */
.calc-details table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.calc-details th,
.calc-details td {
  padding: 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.calc-details th {
  background: #f1f5f9;
  font-weight: 600;
}

/* Images */
.calc-details img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* Section spacing rhythm */
.calc-details > *:first-child {
  margin-top: 0;
}

.calc-details > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .calc-details {
    font-size: 15px;
    line-height: 1.75;
  }

  .calc-details h2 {
    font-size: 20px;
  }

  .calc-details h3 {
    font-size: 17px;
  }

  .calc-details p {
    margin-bottom: 16px;
  }
}

.calc-details {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px;
 
  margin: 50px auto;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid #f1f5f9;
  position: relative;
}


.calc-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #ff6a21, #ff8c42);
  border-radius: 18px 18px 0 0;
}

@media (max-width: 768px) {
  .calc-details {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .calc-details h2 {
    font-size: 21px;
  }

  .calc-details h3 {
    font-size: 17px;
  }

  .calc-details p {
    margin-bottom: 16px;
  }
}

.debt-item {
  margin-top: 14px;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6a21, #ff8c42);
  transition: width 0.7s ease;
}

.schedule-grid div {
  font-weight: 500;
}
.result-pro {
  margin-top: 30px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.result-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.result-title {
  font-size: 13px;
  color: #64748b;
}

.result-main {
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
}

.result-metrics {
  display: flex;
  gap: 20px;
}

.result-metrics div {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 110px;
}

.result-metrics span {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.result-metrics strong {
  font-size: 15px;
  color: #0f172a;
}

.table-wrap {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f1f5f9;
  font-size: 12px;
  text-align: left;
  padding: 10px;
}

td {
  padding: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff6a21, #ff8c42);
  outline: none;
  margin: 10px 0;
}

/* thumb */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff6a21;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slider-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}