/* Säuren-Basen-Gleichgewicht Calculator Styles */

.saeuren-basen-gleichgewicht-container {
  padding: 20px;
}

.calculator-panel {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-panel {
  background: #f8f9fa;
  border: 1px solid #e3f2fd;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 15px 0;
}

.result-value .label {
  font-weight: normal;
  color: #666;
}

.value-highlight {
  color: #007bff;
  font-weight: bold;
}

.formula-display {
  background: #e3f2fd;
  border-left: 4px solid #007bff;
  padding: 15px;
  margin: 20px 0;
  text-align: center;
}

.formula-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 10px 0;
  font-family: 'Times New Roman', serif;
}

/* ICE Table Styles */
.table-bordered {
  border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
  padding: 12px;
  text-align: center;
}

.table-bordered th {
  background: #f8f9fa;
  font-weight: bold;
}

.equilibrium-values {
  margin: 15px 0;
}

.equilibrium-values .label {
  display: inline-block;
  width: 200px;
  font-weight: 600;
  color: #495057;
}

.equilibrium-values .value {
  color: #28a745;
  font-weight: bold;
}

.approximation-result {
  margin-top: 15px;
}

.approximation-result.valid {
  color: #28a745;
}

.approximation-result.invalid {
  color: #dc3545;
}

.calculation-steps {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.calculation-steps .step {
  display: inline-block;
  width: 20px;
  color: #007bff;
  font-weight: bold;
}

/* Buffer Capacity Styles */
.capacity-result .label {
  display: inline-block;
  width: 180px;
  font-weight: 600;
  color: #495057;
}

.capacity-result .value {
  color: #17a2b8;
  font-weight: bold;
}

/* Badge Styles */
.badge {
  padding: 8px 15px;
  border-radius: 12px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.badge.success {
  background: #28a745;
}

.badge.info {
  background: #17a2b8;
}

.badge.warning {
  background: #ffc107;
  color: #212529;
}

.badge.forward {
  background: #28a745;
}

.badge.backward {
  background: #dc3545;
}

.badge.equilibrium {
  background: #6c757d;
}

/* Example Cards */
.example-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.example-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.example-card h4 {
  color: #007bff;
  margin-bottom: 15px;
}

.example-card p {
  margin: 8px 0;
}

.example-card strong {
  color: #2c3e50;
}

/* Info Cards */
.info-card {
  background: white;
  border-left: 4px solid #007bff;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card h3 {
  color: #007bff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.info-card h4 {
  color: #2c3e50;
  margin: 10px 0;
  font-size: 1.1rem;
}

.info-card ul {
  padding-left: 20px;
  margin: 10px 0;
}

.info-card li {
  margin: 5px 0;
}

/* Educational Content */
.educational-content {
  margin-top: 30px;
}

.explanation-text {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

.explanation-text p {
  margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .calculator-panel {
    padding: 15px;
  }
  
  .result-value {
    font-size: 1.4rem;
  }
  
  .formula-text {
    font-size: 1.1rem;
  }
  
  .info-card {
    padding: 15px;
  }
}

/* Weak Acid/Base Specific Styles */
.equilibrium-values.weak-acid .valuehighlight {
  color: #dc3545;
}

/* Utility Classes */
.text-success {
  color: #28a745 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}