/* Standards Calculator Styles */
.standards-calculator {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calculator-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group label {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.button-group {
  display: flex;
  gap: 5px;
  flex: 1;
}

.option-button {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #555;
}

.option-button:hover {
  background-color: #e9e9e9;
}

.option-button.active {
  background-color: #f0f0f0;
  border-color: #ccc;
  color: #333;
  font-weight: 500;
}

.range-slider-container {
  position: relative;
  width: 50%;
  flex: 1;
}

.range-slider {
  position: relative;
  height: 6px;
  background-color: #e9e9e9;
  border-radius: 3px;
  margin: 10px 0;
}

.range-slider.single {
  margin-top: 20px;
}

.range-slider-input {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-appearance: none;
  z-index: 2;
  opacity: 0;
}

.range-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid #ddd;
}

.range-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background-color: #e9e9e9;
  border-radius: 3px;
  z-index: 1;
}

.range-slider-fill {
  position: absolute;
  height: 6px;
  background-color: #ccc;
  border-radius: 3px;
  z-index: 1;
}

.range-slider-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  top: -5px;
  z-index: 3;
  cursor: pointer;
}

.range-slider-handle.min {
  left: 0;
}

.range-slider-handle.max {
  right: 0;
}

.range-value {
  text-align: right;
  font-size: 14px;
  color: #555;
}

.select-container {
  position: relative;
  flex: 1;
}

.select-container select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  color: #333;
  appearance: none;
  cursor: pointer;
}

.select-container::after {
  content: "▼";
  font-size: 12px;
  color: #555;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.calculate-button {
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.calculate-button:hover {
  background-color: #000;
}

.arrow-icon {
  font-size: 20px;
}

.results-container {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.results-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.percentage-display {
  text-align: center;
  margin-bottom: 20px;
}

#percentage-value {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  display: block;
  margin-bottom: 5px;
}

.results-details {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.download-button {
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.download-button:hover {
  background-color: #000;
}

.data-source {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .button-group,
  .range-slider-container,
  .select-container {
    width: 100%;
  }

  .range-value {
    text-align: left;
  }
}
