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

.rref-calculator-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.rref-calculator-dimensions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rref-calculator-dimensions label {
  font-weight: 600;
}

.rref-calculator-dimensions input {
  width: 60px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.rref-button {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rref-button:hover {
  background-color: #e9e9e9;
}

.rref-primary-button {
  background-color: #000000;
  color: white;
  border: none;
}

.rref-primary-button:hover {
  background-color: #333333;
}

.rref-matrix-container {
  margin-top: 20px;
}

.rref-matrix-input,
.rref-matrix-result {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.rref-matrix-row {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
}

.rref-matrix-cell input {
  width: 60px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.rref-calculator-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.rref-result-container {
  margin-top: 20px;
}

.rref-result-container h3 {
  margin-bottom: 10px;
}

.rref-matrix-result {
  font-family: monospace;
  font-size: 16px;
}

.rref-matrix-result-row {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.rref-matrix-result-cell {
  width: 60px;
  padding: 8px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 600px) {
  .rref-calculator-container {
    padding: 15px;
  }

  .rref-calculator-dimensions {
    flex-direction: column;
    align-items: flex-start;
  }

  .rref-calculator-dimensions input {
    width: 100%;
  }

  .rref-matrix-cell input {
    width: 50px;
    padding: 6px;
  }

  .rref-matrix-result-cell {
    width: 50px;
    padding: 6px;
  }
}
