/* styles.css */

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1em;
  color: #7f8c8d;
}

/* Input Sections */
.input-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-section h3 {
  width: 100%;
  margin-bottom: 15px;
  color: #34495e;
}

.data-input, .parameters-input {  
  flex: 1 1 45%;
  margin-bottom: 20px;
  margin-left: 50px;
}

.data-input .data-row, .parameters-input label, .parameters-input input {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.data-input .data-row {
  flex-direction: row;
  justify-content: center;
}

.data-input .data-row input {
  width: 48%;
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.data-input .data-row input:focus, 
.parameters-input input:focus {
  border-color: #3498db;
  outline: none;
}

.parameters-input label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #2c3e50;
}

.parameters-input input {
  padding: 8px 12px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.parameters-input input[type="number"]::-webkit-inner-spin-button, 
.parameters-input input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  margin: 0; 
}

.parameters-input input[type="number"] {
  -moz-appearance: textfield;
}

/* Calculate Button */
#calculateButton {
  display: block;
  width: 350px;
  margin: 0 auto 10px auto;
  padding: 10px 20px;
  background-color: #3498db;
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#calculateButton:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

#calculateButton:active {
  transform: translateY(0);
}

/* Results Section */
.results {
  text-align: center;
  margin-bottom: 30px;
}

.results h3 {
  margin-bottom: 15px;
  color: #34495e;
}

.results p {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.results span {
  font-weight: bold;
  color: #e74c3c;
}

/* Visualization Section */
#visualization {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

#plotVisualization {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

canvas {
  border: 1px solid #bdc3c7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .input-section {
      flex-direction: column;
  }

  .data-input, .parameters-input {
      flex: 1 1 100%;
  }

  .data-input .data-row input {
      width: 100%;
      margin-bottom: 10px;
  }

  #calculateButton {
      width: 100%;
  }
}

#statusSpan {
  display: block;         /* o inline-block si prefieres */
  white-space: normal;    /* permite saltos de línea */
  line-height: 1.5;       /* mejora la legibilidad */
}