/* HCPSS Grade Calculator Styles */
.hcpss-grade-calculator-container {
  max-width: 100%;
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.hcpss-grade-calculator {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.hcpss-grade-calculator h2 {
  color: #333;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.hcpss-grade-calculator h3 {
  color: #555;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
}

.hcpss-gc-section {
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.hcpss-gc-grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.hcpss-gc-assignment {
  flex: 2;
  min-width: 150px;
}

.hcpss-gc-score,
.hcpss-gc-total {
  flex: 1;
  min-width: 80px;
}

.hcpss-gc-category {
  flex: 1;
  min-width: 120px;
}

.hcpss-gc-assignment,
.hcpss-gc-score,
.hcpss-gc-total,
.hcpss-gc-category {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.hcpss-gc-remove-btn {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.hcpss-gc-add-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

.hcpss-gc-weight-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.hcpss-gc-weight-row label {
  width: 120px;
  font-weight: 500;
}

.hcpss-gc-weight-row input {
  width: 60px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 5px;
}

.hcpss-gc-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.hcpss-gc-calculate-btn,
.hcpss-gc-reset-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.hcpss-gc-calculate-btn {
  background-color: #000000;
  color: white;
  flex: 2;
}

.hcpss-gc-reset-btn {
  background-color: #f0f0f0;
  color: #333;
  flex: 1;
}

.hcpss-gc-results {
  background-color: #f0f8ff;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.hcpss-gc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.hcpss-gc-result-row:last-child {
  border-bottom: none;
}

.hcpss-gc-result-row span:first-child {
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hcpss-gc-grade-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hcpss-gc-assignment,
  .hcpss-gc-score,
  .hcpss-gc-total,
  .hcpss-gc-category,
  .hcpss-gc-remove-btn {
    width: 100%;
    margin-bottom: 5px;
  }

  .hcpss-gc-actions {
    flex-direction: column;
  }

  .hcpss-gc-calculate-btn,
  .hcpss-gc-reset-btn {
    width: 100%;
  }
}
