/* ==========================================================
   SI-KESBUMIL - Screening Stylesheet
   Hasil Screening Pasien (Siti Aminah View)
   ========================================================== */

.screening-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 24px;
}

.screening-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.screening-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Status Card (Anemia Ringan) */
.hero-status-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 100px 1.4fr 1.1fr;
  gap: 20px;
  align-items: center;
}

.hero-blood-illu {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2 0%, #ffedd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blood-illu svg {
  width: 55px;
  height: 55px;
}

.hero-status-center {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-status-center .status-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-status-center .status-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.hero-status-center .status-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.hero-status-center .status-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ef4444;
  background-color: #fee2e2;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero-status-right {
  border-left: 1px solid #f1f4f9;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-status-right .hb-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-status-right .hb-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1.1;
}

.hero-status-right .hb-normal {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hb-scale-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.scale-segment {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  background-color: #f1f4f9;
  color: #94a3b8;
}

.scale-segment.active-severe {
  background-color: #fecaca;
  color: #b91c1c;
}

.scale-segment.active-moderate {
  background-color: #fed7aa;
  color: #c2410c;
}

.scale-segment.active-mild {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #f87171;
  font-weight: 800;
}

.scale-segment.active-normal {
  background-color: #d1fae5;
  color: #047857;
}

/* 5 Metrics Summary Grid */
.metrics-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.metrics-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.metrics-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.metric-item-card {
  background-color: #fcfdfe;
  border: 1px solid #edf0f7;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.metric-item-card:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.metric-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-val {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.metric-val.danger { color: #ef4444; }
.metric-val.success { color: #10b981; }

.metric-sub {
  font-size: 0.72rem;
  font-weight: 700;
}

.metric-sub.danger { color: #ef4444; }
.metric-sub.success { color: #10b981; }

/* Info Banner Cards (Penjelasan, Gejala, Ingat) */
.info-box-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid transparent;
  display: flex;
  gap: 16px;
}

.info-box-card.blue {
  background-color: #eff6ff;
  border-color: #dbeafe;
}

.info-box-card.yellow {
  background-color: #fffbeb;
  border-color: #fef3c7;
}

.info-box-card.purple {
  background-color: #f5f3ff;
  border-color: #ede9fe;
}

.info-box-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-box-card.blue .info-box-icon { background-color: #dbeafe; color: #2563eb; }
.info-box-card.yellow .info-box-icon { background-color: #fef3c7; color: #d97706; }
.info-box-card.purple .info-box-icon { background-color: #ede9fe; color: #7c3aed; }

.info-box-body {
  flex: 1;
}

.info-box-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.info-box-card.blue h4 { color: #1e40af; }
.info-box-card.yellow h4 { color: #92400e; }
.info-box-card.purple h4 { color: #5b21b6; }

.info-box-body p {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.5;
}

.symptoms-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.symptoms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #4b5563;
}

.symptoms-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.symptoms-list li::before {
  content: "•";
  color: #d97706;
  font-weight: bold;
  font-size: 1.1rem;
}

.symptoms-illu {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

/* Sidebar Widgets in Screening View */
.advice-card,
.next-schedule-card,
.contact-officer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.advice-card-header {
  border-bottom: 1px solid #f1f4f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.advice-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advice-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.advice-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advice-icon-pill.pink { background-color: #fee2e2; color: #ef4444; }
.advice-icon-pill.orange { background-color: #ffedd5; color: #f97316; }
.advice-icon-pill.blue { background-color: #eff6ff; color: #3b82f6; }

.advice-item-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.advice-item-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Next Schedule Widget */
.next-schedule-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.next-schedule-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #f8faff;
  border: 1px solid #edf2f9;
  border-radius: var(--radius-md);
  padding: 14px;
}

.next-sched-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #e6f9f0;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.next-sched-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.next-sched-date {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.next-sched-title {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.next-sched-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.time-pill-green {
  background-color: #e6f9f0;
  color: var(--success);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Contact Officer Card */
.contact-officer-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  border: 1px solid #e9e4fd;
}

.contact-officer-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #4338ca;
  margin-bottom: 8px;
}

.contact-officer-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.btn-contact {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: var(--transition);
}

.btn-contact:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Disclaimer Footer */
.screening-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

/* Responsive Screening */
@media (max-width: 1100px) {
  .screening-layout {
    grid-template-columns: 1fr;
  }
  .hero-status-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-blood-illu {
    margin: 0 auto;
  }
  .hero-status-right {
    border-left: none;
    border-top: 1px solid #f1f4f9;
    padding-left: 0;
    padding-top: 16px;
  }
  .metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .symptoms-wrapper {
    flex-direction: column-reverse;
  }
}
