/* General Styles */
body {
  background: linear-gradient(135deg, #e65c00a2, #ff8c00a2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Ensure all styles are scoped to the calculator */
#regression-calculator {
  font-family: "Playfair Display", serif;
  color: #212529;
  max-width: 800px;
  width: 100%; /* Ensure full width up to max-width */
  margin: 2rem auto;
  padding: 50px;
  background: linear-gradient(135deg, #f99d33, #fff3e6);
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#regression-calculator h2 {
  text-align: center;
  color: #212529;
  font-size: 2rem;
}

#regression-calculator p {
  text-align: center;
  color: #555;
}

/* Container for each input group */
#regression-calculator > div {
  max-width: 100%; /* Match the container's content width */
  margin-bottom: 20px; /* Consistent spacing */
}

#regression-calculator label {
  font-weight: bold;
  display: block;
  margin: 10px 0 5px;
}

#regression-calculator input {
  width: 100%;
  max-width: 100%; /* Prevent overflow beyond parent */
  padding: 10px;
  border: 1px solid #e46803;
  border-radius: 5px;
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
  box-sizing: border-box; /* Include padding in width calculation */
}

#regression-calculator small {
  display: block;
  margin-top: -5px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #6c757d;
}

#regression-calculator .buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  max-width: 100%; /* Align with other elements */
}

#regression-calculator #calculate-btn,
#regression-calculator #clear-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#regression-calculator #calculate-btn {
  background: #ff6f00;
  color: white;
}

#regression-calculator #calculate-btn:hover {
  background: #e65c00;
}

#regression-calculator #clear-btn {
  background: #ff6f00;
  color: white;
}

#regression-calculator #clear-btn:hover {
  background: #e65c00;
}

/* Enhanced Results Styling */
#regression-calculator #results {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 100%; /* Align with container */
}

#regression-calculator #results h3 {
  color: #212529;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff6f00;
  padding-bottom: 5px;
}

#regression-calculator #results p {
  text-align: left;
  margin: 10px 0;
  color: #333;
  font-size: 1.1rem;
}

#regression-calculator #results span {
  color: #ff6f00;
  font-weight: bold;
}

#regression-calculator #results canvas {
  margin: 20px auto;
  display: block;
  max-width: 100%;
  border: 1px solid #eee;
  border-radius: 4px;
}

#regression-calculator #explanation h4 {
  margin-top: 20px;
  color: #212529;
  font-size: 1.25rem;
}

#regression-calculator #explanation div {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #eee;
  max-width: 100%; /* Align with container */
}
.navbar {
  background-color: #000;
  width: calc(100% - 2rem); /* w-96 equivalent */
  color: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
  border-radius: 7px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ddd;
}

.nav-link.active {
  color: #379f51; /* Gold color for active link */
  font-weight: bold;
}

/* Optional: Style for your calculator cards if you want to keep them consistent */
.calculator-selection {
  margin: 1rem;
}
