@media (max-width: 600px) {
  .InputGroup {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .InputLabel,
  .IndicatorString {
    font-size: 1rem;
    text-align: left;
    width: 100%;
  }

  .NumberInputField {
    width: 100%;
    max-width: none;
    font-size: 1rem;
  }

  .ToggleSwitch {
    width: 50px;
    height: 24px;
  }

  .Slider:before {
    height: 18px;
    width: 18px;
  }

  .OutputResult {
    font-size: 4vh;
  }

  .buttonClas {
    font-size: 1rem;
  }
}


/* Reset + base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', sans-serif;
  }
  
  html, body {
    background-color: #1c1c1c;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Inter', sans-serif;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    height: auto;
    overflow-x: hidden; /* Allow vertical scroll, block horizontal */
  }

  
  /* Layout */
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    min-height: 100vh; /* Better than fixed 100vh */
    width: 100vw;
  }
  
  /* Big clean headline */
  .Headder {
    font-size: 6vh;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.05em;
    display: block;
    margin: 0 auto;
  }

  /* Form area */
  .inputParameter {
    display: grid;
    gap: 2vh;
    width: 85vw;
    max-width: 1000px;
    margin-top: 2vh;
  }
  
  /* Input rows */
  .InputGroup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1vw;
  }
  
  /* Labels */
  .InputLabel {
    flex: 1;
    font-size: 2.5vh;
    font-weight: 500;
    color: #f5f5f5;
    white-space: nowrap;
  }
  
  /* Input fields */
  .NumberInputField {
    flex: 0 1 30vw;
    max-width: 400px;
    padding: 1.2vh 1vw;
    font-size: 2.5vh;
    border: 1px solid #666;
    border-radius: 0.8vh;
    background-color: #2e2e2e;
    color: #ffffff;
    max-height: 7vh;
  }
  
  /* Toggle switches */
  .ToggleSwitch {
    position: relative;
    width: 4.6vw;
    height: 3vh;
    min-width: 60px;
  }
  
  .ToggleSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .Slider {
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #555;
    border-radius: 3vh;
    transition: 0.4s;
  }
  
  .Slider:before {
    content: "";
    position: absolute;
    height: 2.2vh;
    width: 2.2vh;
    left: 0.4vh;
    bottom: 0.4vh;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  
  .ToggleSwitch input:checked + .Slider {
    background-color: #c94a01;
  }
  
  .ToggleSwitch input:checked + .Slider:before {
    transform: translateX(3vw);
  }
  
  .IndicatorString {
    font-size: 3vh;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    width: 10vw;
    min-width: 60px;
    text-align: center;
  }
  
  /* Button */
  .CalcualteGroup {
    text-align: center;
  }
  
  .buttonClas {
    background-color: #ffffff;
    color: #111;
    padding: 1.2vh 4vw;
    font-size: 2.4vh;
    border: none;
    border-radius: 0.8vh;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
  }
  
  .buttonClas:hover {
    background-color: #e0e0e0;
  }
  
  /* Output */
  .OutputGroup {
    margin-top: 2vh;
    text-align: center;
  }
  
  .OutputLabel {
    font-size: 2.5vh;
    display: block;
    color: #ffffff;
  }
  
  .OutputResult {
    font-size: 8vh;
    font-weight: bold;
    color: #ffffff;
  }
  
  .FixedValueField {
    flex: 0 1 30vw; /* Same flex rule as input */
    max-width: 400px;
    padding: 1.2vh 1vw;
    font-size: 2.5vh;
    border: 1px solid #666;
    border-radius: 0.8vh;
    background-color: #515151;
    color: #ffffff;
    display: flex;
    align-items: center; /* Center text vertically */
    min-height: 3.8vh; /* Matches the visual height of input fields */
    max-height: 5vh;
}

.ScaleContainer {
  transform-origin: top center;
  transition: transform 0.3s ease;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1100px) and (min-width: 800px) {
  .ScaleContainer {
    transform: scale(0.9);
  }
}

@media (max-width: 800px) and (min-width: 600px) {
  .ScaleContainer {
    transform: scale(0.8);
  }
}

@media (max-width: 600px) {
  .ScaleContainer {
    transform: none; /* Use mobile layout */
  }
}

.ParameterSection {
  margin-bottom: 4vh;
}

.SectionHeader {
  font-size: 4vh;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 2vh;
  text-align: center;
  margin-top: 2vh;
}

.ParameterGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vh 2vw;
}

@media (max-width: 600px) {
  .ParameterGrid {
    grid-template-columns: 1fr; /* Switch to single column on small screens */
  }
}

@media (max-width: 1600px) {
  .ParameterGrid {
    grid-template-columns: 1fr; /* Break grid earlier */
  }

  .InputGroup {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .InputLabel,
  .IndicatorString {
    font-size: 1.8vh;
    text-align: left;
    width: 100%;
  }

  .NumberInputField, .FixedValueField {
    width: 100%;
    max-width: none;
    font-size: 1.8vh;
  }

  .ToggleSwitch {
    width: 50px;
    height: 24px;
  }

  .Slider:before {
    height: 18px;
    width: 18px;
  }

  .OutputResult {
    font-size: 4vh;
  }

  .buttonClas {
    font-size: 1.8vh;
  }
}