c/* Calculator App Styles */

/* Input Group */
.input-group {
  margin: 20px 0;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

/* Button Styles */
button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 20px 0;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Results Display */
.result-container {
  margin-top: 30px;
  display: none;
}

.result-container.show {
  display: block;
}

/* Step-by-Step Solution Styles */
.step {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-label {
  font-weight: 600;
  color: #667eea;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-text {
  color: #333;
  line-height: 1.8;
  font-size: 16px;
}

.step-text .MathJax {
  font-size: 1.1em !important;
}

.step-text .MathJax_Display {
  margin: 15px 0 !important;
}

/* Progress Indicator */
.progress-indicator {
  text-align: center;
  color: #667eea;
  font-size: 14px;
  margin-top: 15px;
  font-weight: 500;
}

/* Error Messages */
.error {
  color: #dc3545;
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 20px;
  border-radius: 8px;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

/* Examples Section */
.examples {
  background: #e8eaf6;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.examples h3 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 18px;
}

.examples ul {
  list-style: none;
  padding: 0;
}

.examples li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: #555;
}

.examples li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* MathLive Field Styling */
math-field {
  display: block;
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 20px;
  background: #fafafa;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

math-field:focus-within {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
  outline: none;
}

math-field:hover:not(:focus-within) {
  border-color: #b8c1ec;
  background: #fff;
}

/* LaTeX Preview */
.latex-preview {
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  color: #666;
  display: none;
}

.latex-preview.show {
  display: block;
}