/* AP Biology Score Calculator Styles */
.apbio-calculator-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.apbio-calculator-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #000000;
}

.apbio-calculator-section {
  margin-bottom: 2rem;
}

.apbio-calculator-section h3 {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #000000;
}

.apbio-input-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.apbio-input-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.apbio-input-group input {
  padding: 0.5rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 1rem;
}

.apbio-input-help {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.apbio-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.apbio-calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.apbio-button {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.apbio-button:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.apbio-button:active {
  transform: translateY(0);
}

.apbio-button-secondary {
  background-color: #f0f0f0;
  color: #000000;
  border: 1px solid #d0d0d0;
}

.apbio-button-secondary:hover {
  background-color: #e0e0e0;
}

.apbio-results {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  display: none;
}

.apbio-results.active {
  display: block;
}

.apbio-result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.apbio-result-item:last-child {
  border-bottom: none;
}

.apbio-result-label {
  font-weight: 500;
}

.apbio-result-value {
  font-weight: 600;
}

#ap-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.apbio-score-explanation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 768px) {
  .apbio-calculator-container {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .apbio-grid-container {
    grid-template-columns: 1fr;
  }

  .apbio-calculator-actions {
    flex-direction: column;
  }

  .apbio-button {
    width: 100%;
  }
}
