body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  margin: 0;
  color: #003049;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #0077b6;
  margin-bottom: 5px;
}

/* === Tagline === */
.tagline {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tab-button {
  background-color: #caf0f8;
  border: none;
  color: #003049;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.tab-button.active {
  background-color: #0077b6;
  color: white;
}

.tab-content {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
  display: block;
}

/* === Dashboard === */
.dashboard {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dash-card {
  flex: 1;
  min-width: 150px;
  background-color: #e0f7fa;
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

form input, form textarea, select {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #005f87;
}

#recordsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#recordsTable th, #recordsTable td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

#recordsTable th {
  background-color: #0077b6;
  color: white;
}

.action-btn {
  margin: 0 3px;
  padding: 4px 6px;
  border-radius: 4px;
  background-color: #90e0ef;
  border: none;
}

.action-btn.delete {
  background-color: #ff6b6b;
  color: white;
}

/* === AI Diagnosis === */
#ai-diagnosis {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 15px;
}

#ai-diagnosis h2 {
  color: #015c92;
  text-align: center;
  margin-bottom: 20px;
}

#ai-diagnosis textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #bcd4e6;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: none;
  margin-bottom: 15px;
}

#ai-diagnosis button {
  background-color: #017bbd;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

#ai-diagnosis button:hover {
  background-color: #015c92;
}

.ai-result-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.ai-card {
  background-color: white;
  border: 1px solid #bcd4e6;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(1, 92, 146, 0.1);
  animation: fadeIn 0.6s ease-in-out;
}

.ai-card h3 {
  color: #015c92;
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e3f2fd;
  padding-bottom: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Calculators === */
#calculators {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 15px;
}

.calc-card {
  background-color: white;
  border: 1px solid #bcd4e6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(1, 92, 146, 0.1);
  padding: 20px;
  margin-bottom: 25px;
}

.calc-card h3 {
  color: #015c92;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

.calc-card label {
  display: block;
  margin-top: 10px;
  color: #333;
  font-weight: 500;
}

.calc-card input, 
.calc-card select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #bcd4e6;
  border-radius: 8px;
  font-size: 14px;
}

.calc-card button {
  background-color: #017bbd;
  color: white;
  border: none;
  padding: 10px 18px;
  margin-top: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.calc-card button:hover {
  background-color: #015c92;
}

.quick-guide {
  background-color: #e3f2fd;
  border-left: 4px solid #017bbd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
  line-height: 1.6;
}

.quick-guide h4 {
  color: #015c92;
  margin-bottom: 10px;
}

/* === Footer === */
.footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  color: #444;
  border-top: 1px solid #e0e0e0;
  margin-top: 40px;
}

.footer a {
  color: #0077b6;
  font-weight: 500;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.referral-section {
  background: #f3f8ff;
  border: 1px solid #bcd4ff;
  padding: 16px;
  margin: 20px auto;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
}
.referral-section input {
  width: 80%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 10px;
}
.referral-section button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}
.referral-section button:hover {
  background: #005dc1;
}

.hidden {
  display: none !important;
}

.modal.active {
  display: flex;
}

.modal {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

/* === Responsive === */
@media (max-width: 700px) {
  .dashboard, .calc-container {
    flex-direction: column;
  }

  .tagline {
    font-size: 15px;
  }

  .footer {
    font-size: 13px;
  }
}


