body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f0f5, #e0e0e5);
  color: #333;
  display: flex;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background: white;
  max-width: 550px; /* Increased for more breathing space */
  margin: 20px auto; /* Added margin for better centering */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative; /* For positioning the settings button */
}


h1 {
  text-align: center;
  color: #4CAF50;
  margin-top: 60px;
  margin-bottom: 30px;
  font-size: 2.5rem; /* Increased for larger screens */
}

.label {
  font-weight: bold;
  margin-bottom: 5px;
}

.input-group {
  margin-bottom: 15px; /* Increased spacing */
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  background: #f5f5f5; /* Lightened background */
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus,
.input-group select:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3); /* Focus shadow */
}

.input-group input[type="range"] {
  width: 100%;
  margin-top: 10px; /* Added space above slider */
}

.slider-container {
display: flex; /* Use Flexbox for better layout control */
align-items: center;
margin-bottom: 15px;
}



.slider-container input[type="range"] {
flex: 1; /* Allow the slider to take up available space */
margin: 0; /* Remove default margins from range input */
}

.slider-container input[type="number"] {
  width: auto; /* Automatically adjust width based on content */
  min-width: 50px; /* Set a minimum width for smaller values */
  max-width: 120px; /* Set a maximum width to prevent it from growing too large */
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-bottom: 2px solid #ddd;
  background: #f9f9f9;
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.slider-container span {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

button { /* Target all buttons in your form */
  display: block;     /* Make it take up the full width of its container */
  margin: 20px auto;  /* Center horizontally (top/bottom margins can be adjusted) */
  width: auto;        /* Let the button size itself based on content */
  padding: 10px 20px; /* Adjust padding for better appearance */
  background-color: #4CAF50; /* Green color */
  color: white;
  border: none;
  border-radius: 5px; /* Slightly rounded corners */
  cursor: pointer;
  font-size: 1rem;   /* Adjust font size if needed */
  transition: background-color 0.3s ease; /* Add a subtle transition */
}

button:hover {
  background-color: #45a049; /* Darker green on hover */
}

.result-container {
  margin-top: 25px;
  text-align: center; /* Center the content */
  font-family: sans-serif; /* Choose a modern font */
}

.result-container span {
  color: #999; /* Lighter gray for tertiary info */
  font-size: 0.9rem; /* Slightly smaller font */
  display: block;
  margin-bottom: 5px; /* Add spacing */
}

.result-container strong {
  display: block; /* Occupy a full line */
  margin-bottom: 10px; /* More spacing for importance */
}

.result-container .primary {
  color: #007bff; /* Blue for primary emphasis */
  font-size: 1.8rem; /* Large and bold */
  font-weight: bold;
}

.result-container .secondary {
  color: #28a745; /* Green for secondary emphasis */
  font-size: 1.4rem; /* Smaller than primary, still bold */
  font-weight: bold;
}

.settings-btn {
  background: linear-gradient(135deg, #4CAF50, #2E8B57);
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px; 
  position: absolute;
  top: 20px;
  right: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.settings-btn:hover {
  transform: translateY(-2px); /* Lift up on hover */
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  padding-top: 60px;
}

.popup-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.fixed-costs {
  margin-bottom: 10px;
}

.fixed-costs div {
  margin-bottom: 5px;
}

.fixed-costs label {
  font-weight: normal;
}

@media (max-width: 768px) {
  .popup-content {
      width: 80%;
  }
}

@media (max-width: 480px) {
  .popup-content {
      width: 100%;
  }
}
