.gas-law-simulator-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gas-law-controls {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.gas-law-controls .btn-group .btn {
  margin: 0 2px;
  font-size: 12px;
  padding: 8px 12px;
}

.state-display {
  margin-top: 15px;
}

.state-item {
  margin-bottom: 15px;
}

.state-item label {
  display: block;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 5px;
}

.state-item input[type="range"] {
  width: 100%;
  margin-bottom: 5px;
}

.state-item span {
  font-weight: bold;
  color: #1b5e20;
}

.formula-display {
  background: #e9ecef;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  margin-top: 10px;
}

.formula-display h5 {
  color: #2e7d32;
  font-weight: bold;
}

.calculation-results {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
}

.calculation-results h5 {
  color: #2e7d32;
  border-bottom: 2px solid #28a745;
  padding-bottom: 5px;
}

.calc-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 4px solid #28a745;
}

.calc-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .gas-law-controls .row {
    margin-bottom: 20px;
  }
  
  .state-item {
    margin-bottom: 20px;
  }
  
  .formula-display {
    margin-top: 15px;
  }
}

@media (prefers-color-scheme: dark) {
  .gas-law-controls {
    background: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
  }
  
  .state-item label {
    color: #4caf50;
  }
  
  .state-item span {
    color: #81c784;
  }
  
  .formula-display {
    background: #3c3c3c;
    color: #e0e0e0;
  }
  
  .calculation-results {
    background: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
  }
  
  .calc-item {
    background: #3c3c3c;
    border-color: #555;
    color: #e0e0e0;
  }
}

.state-item input[type="range"]:focus {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

.btn:focus {
  outline: 2px solid #28a745;
  outline-offset: 2px;
}

.calc-item:focus-within {
  border-color: #81c784;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}