body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(180deg, #d35555 0%, #e5e7eb 100%);
  color: #333;
  margin: 0;
  padding: 20px;
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fccccc;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

h1 {
  font-size: 2rem;
  color: #000000;
  margin: 0;
}

.subtitle {
  font-size: 1rem;
  color: #3d4242;
}

h2 {
  font-size: 1.5rem;
  color: #34495e;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.2rem;
  color: #34495e;
  margin-bottom: 15px;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3498db;
  outline: none;
}

.table-wrapper {
  margin: 20px 0;
}

.w-full {
  width: 100%;
}

.contingency-table {
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contingency-table th,
.contingency-table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.contingency-table th {
  background: #f1f5f9;
  font-weight: 500;
  color: #34495e;
}

.contingency-table td.row-label {
  text-align: left;
  font-weight: 500;
  background: #fafafa;
}

.contingency-table input[type="number"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: center;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.contingency-table input[type="number"]:focus {
  border-color: #3498db;
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.significance {
  max-width: 300px;
}

.tooltip {
  color: #3d4242;
  font-size: 0.9rem;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn.primary {
  background: #3498db;
  color: #fff;
}

.btn.primary:hover {
  background: #2980b9;
}

.btn.secondary {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn.secondary:hover {
  background: #d5dbdb;
}

.results-section {
  margin-top: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(184, 54, 54, 0.05);
}

.result-table {
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.result-table th,
.result-table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.result-table th {
  background: #f1f5f9;
  font-weight: 500;
  color: #1d61a6;
}

.result-table td {
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.stat-item strong {
  color: #34495e;
  margin-bottom: 5px;
}

.stat-item span {
  color: #2c3e50;
  font-weight: 500;
}

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

  .contingency-table th,
  .contingency-table td {
    padding: 8px 10px;
  }

  .result-table th,
  .result-table td {
    padding: 8px 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .btn {
    padding: 10px 15px;
  }
}
.navbar {
  background-color: #000;
  width: calc(100% - 2rem); /* w-96 equivalent */
  color: #fff;
  margin-bottom: 1rem; /* m-4 equivalent */
  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;
}
