/* ======================================================
   GLOBAL
====================================================== */
html,
body {
  height: 100%;
}

body {
  background: radial-gradient(circle at top, #1f2937, #020617);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #e5e7eb;
  min-height: 100vh;
  padding-bottom: 80px; /* ruang untuk footer fixed */
  overflow-x: hidden;
}

/* ======================================================
   GRID LAYOUT
====================================================== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   PANELS
====================================================== */
.form-panel,
.result-panel {
  height: calc(100vh - 200px); /* navbar + footer + margin */
  display: flex;
  flex-direction: column;
  border-radius: 24px;
}

/* ======================================================
   PANEL HEADERS
====================================================== */
.form-panel h2,
.result-panel h3 {
  flex-shrink: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 18px;
}

/* ======================================================
   PANEL CONTENT (SCROLLABLE)
====================================================== */
.form-scroll-container,
.result-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  color: #e5e7eb;
}

/* ======================================================
   SCROLLBAR
====================================================== */
.form-scroll-container::-webkit-scrollbar,
.result-content::-webkit-scrollbar {
  width: 8px;
}

.form-scroll-container::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.form-scroll-container::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb {
  background: linear-gradient(#9ca3af, #6b7280);
  border-radius: 10px;
}

/* ======================================================
   CARD (GLASS DARK)
====================================================== */
.card {
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ======================================================
   TITLES
====================================================== */
.text-judul {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(to right, #f9fafb, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ======================================================
   FORM ELEMENTS
====================================================== */
.form-label {
  font-weight: 600;
  color: #d1d5db;
}

.form-select,
.form-control,
textarea.form-control {
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9fafb;
  border-radius: 12px;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-select:focus,
.form-control:focus,
textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

/* ======================================================
   SYMPTOM CHECKBOXES
====================================================== */
#symptomList .form-check {
  background: linear-gradient(145deg, #020617, #111827);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px 14px 44px;
  width: 100%;
  color: #e5e7eb;
  transition: all 0.25s ease;
}

#symptomList .form-check:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
}

#symptomList .form-check-input {
  margin-left: -28px;
}

/* ======================================================
   PRIMARY BUTTON
====================================================== */
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  border-radius: 14px;
  font-weight: 700;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.45);
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
  font-weight: 700;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

/* ======================================================
   WHATSAPP FLOAT BUTTON
====================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
}

.whatsapp-float:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* ---------- WHATSAPP FLOAT TEXT ---------- */
.whatsapp-text {
  position: absolute;
  bottom: -22px;
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;

  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(6px);
  transition: all 0.3s ease;
  pointer-events: none;
}


