/* Kontainer gambar */
.slide-news-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0px 10px;
  scroll-snap-type: x mandatory;
  border-radius: 10px;
  scrollbar-width: none;
  /* background: #eefffd; */
  padding: 10px;
  -ms-overflow-style: none;
}

.slide-news-item {
  background: #ffffff;
  padding: 10px 10px;
  border-radius: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.slide-news-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, dan Edge */
}

.news-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 20px;
}

.news-item {
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 12px;
  color: #000;
  font-weight: bold;
  margin: 0;
}

.news-date {
  font-size: 10px;
  color: #555;
  margin-top: 5px;
}

.gizi-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  font-size: 14px;
  animation: bounceInLeft 1s ease-in-out;
}

.gizi-avatar {
  height: 70px;
  border-radius: 50%;
}

.gizi-bubble {
  background-color: #0cb299;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
}

.gizi-bubble::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent #0cb299 transparent transparent;
}

.typing {
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(22) forwards, blinkCursor 0.75s infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

.grid-gizi {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  background: white;
}

.grid-gizi img {
  width: 100px;
  height: 80px;
}

.grid-gizi-cart {
  display: grid;
  align-items: center;
  gap: 20px;
  background: white;
}

.grid-gizi-cart img {
  width: 50px;
  height: 50px;
}

.data-gizi {
  color: #000000;
}

#gizi-container {
  display: none;
}

.popup-gizi {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(252, 252, 252, 0.8);
  padding: 20px;
  border-radius: 8px;
}

.popup-gizi img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.popup-gizi-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.order-button {
  background-color: #0cb299;
  color: white;
  border: none;
  padding: 5px 5px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.order-button:hover {
  background-color: #089f86;
}


.order-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.order-input {
  padding: 4px !important;
  margin-bottom: 0px !important;
  width: 15% !important;
  text-align: right !important;
}

.topup-navbar {
  margin-bottom: 20px;
  padding: 0;
  overflow-x: auto; /* Tetap bisa geser */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Untuk Firefox */
}

.topup-navbar::-webkit-scrollbar {
  display: none; /* Untuk Chrome, Safari */
}


.topup-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap; /* Pastikan item tetap dalam satu baris */
}

.topup-list li {
  color: #000;
  border: #eeeeee 1px solid;
  background-color: #eeeeee;
  border-radius: 10px;
  padding: 5px;
  font-size: 12px;
  margin-right: 10px;
  transition: color 0.3s ease;
  flex-shrink: 0; /* Mencegah item mengecil */
}

.topup-list li.active {
  color: #007460;
  font-weight: bold;
  background-color: #d9f4ef;
  border: #d9f4ef 1px solid;
}

.btn-floating-gizi {
  background-color: #089f86;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 50%;
}

.btn-floating-gizi i {
  font-size: 30px;
}

.container-jenis {
  display: none;
  margin-bottom: 20px;
  gap: 20px;
}
.card-jenis {
  color: #089f86;
  border: #089f86 1px solid;
  background-color: #fff;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
}

.card-jenis.active {
  color: #ffffff;
  background-color: #089f86;
}

.card-jenis span {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  gap: 10px; /* Jarak antara elemen */
}

.input-groups {
  flex: 1; /* Agar kedua elemen memiliki lebar yang sama */
  display: flex;
  flex-direction: column;
}

.custom-swal-container {
  position: relative;
  display: inline-block;
}

.custom-swal-image {
  width: 100%;
  border-radius: 5px;
}

.custom-text-overlay {
  position: absolute;
  bottom: 22px;
  right: 12px;
  color: #000; /* Warna teks */
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 18px;
}

.desc-title-bmi{
  color: #000;
  font-size: 12px;
}

.content-selengkapnya{
  text-align: left;
  color: #000;
  font-size: 12px;
}

.desc-title-bmi-selengkapnya{
  color: #089f86;
  font-size: 12px;
  display: block; 
  text-align: right;
}

.gender-icons { display: flex; gap: 50px; justify-content: center; }
.gender-icons input { display: none; }
.gender-icons label { cursor: pointer; text-align: center; }
.gender-icons img { filter: grayscale(100%); transition: 0.3s; }
.gender-icons input:checked + img { filter: grayscale(0%); }

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Container utama */
.bmi-container {
  text-align: center;
}

/* Ikon */
.bmi-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

/* Judul */
.bmi-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Badan Ideal */
.bmi-ideal {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Grid input */
.bmi-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 15px;
}

.bmi-grid div {
  flex: 1;
}

.bmi-grid label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.bmi-grid input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

/* Hasil BMI */
.bmi-result {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Status BMI */
.bmi-status {
  font-size: 16px;
  font-weight: bold;
  margin-top: 5px;
}

.sleep-list {
  list-style: none; /* Hilangkan bullet */
  padding: 0;
}

.sleep-list li {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px; /* Beri jarak antar item */
}

#loadMore {
  display: block;
  text-align: center;
  color: #089f86;
  font-size: 12px;
  font-weight: bold;
  margin: 20px auto;
  cursor: pointer;
}

/* ====== TIMELINE WRAPPER ====== */
.patient-timeline {
    padding: 12px 12px 24px;
}

.timeline-header {
    background: #f3f7fb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.timeline-header h2 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.timeline-header p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* ====== TIMELINE VERTICAL ====== */
.timeline-wrapper {
    position: relative;
    padding-left: 26px; /* space untuk icon & garis */
    margin-top: 4px;
}

/* garis vertikal */
.timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    width: 3px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #84DAF2, #4584CB);
    opacity: 0.8;
}

/* setiap item */
.timeline-item {
    position: relative;
    margin-bottom: 14px;
}

/* icon bulat di garis */
.timeline-icon {
    position: absolute;
    left: -25px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #84DAF2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #4584CB;
    box-shadow: 0 0 0 3px rgba(132, 218, 242, 0.25);
}

/* kartu konten */
.timeline-content {
    margin-left: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    border-left: 4px solid #84DAF2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* baris judul + waktu */
.timeline-title-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.timeline-time {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

/* teks deskripsi */
.timeline-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #4b5563;
}

@media (min-width: 768px) {
    .patient-timeline {
        max-width: 600px;
        margin: 0 auto;
    }

    .timeline-header {
        padding: 16px 18px;
    }

    .timeline-title {
        font-size: 14px;
    }

    .timeline-text {
        font-size: 13px;
    }
}

.terms {
    font-size: 14px;
    line-height: 1.7;
    color: #222;
}

.terms-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.terms-desc {
    margin-bottom: 20px;
    color: #444;
}

.terms h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    border-left: 4px solid #0cb299;
    padding-left: 10px;
}

.terms ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.terms ul li {
    margin-bottom: 8px;
}

.sub-list {
    margin-top: 8px;
}

.sub-list li {
    font-size: 13.5px;
    color: #444;
}

.img-home {
  margin-bottom:3px; border-radius:50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* NAVBAR */
.floating-navbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 92%;
  max-width: 420px;
  height: 60px;

  background: #ffffff;
  border-radius: 36px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;
  z-index: 999;
}

/* WRAPPER KIRI & KANAN */
.nav-side {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ITEM ICON + LABEL */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  font-size: 20px;
  color: #a0aec0;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-item span {
  margin-top: 4px;
  font-size: 11px;
  color: #a0aec0;
}

/* ACTIVE */
.nav-item.active,
.nav-item.active span,
.nav-item:hover,
.nav-item:hover span {
  color: #4fa3d1;
}

/* CENTER FLOATING */
.nav-center {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);

  width: 72px;
  height: 72px;

  background: #ffffff;
  border-radius: 35%;
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.25); */

  display: flex;
  align-items: center;
  justify-content: center;
}

/* GAMBAR TENGAH */
.nav-center img {
  width: 54px;
  height: 54px;
  border-radius: 25%;
  object-fit: cover;
}

.promo-wrapper {
    padding: 16px;
}

.promo-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.promo-slider::-webkit-scrollbar {
    display: none;
}

.promo-slide {
    min-width: 100%;
    scroll-snap-align: center;
    border-radius: 16px;
    padding: 8px;
}

.promo-slide img {
    width: 100%;
    height: auto;              /* 🔥 tinggi ngikut gambar */
    max-height: 420px;         /* biar ga kepanjangan */
    object-fit: contain;       /* 🔥 TIDAK DIPOTONG */
    border-radius: 12px;
    display: block;
    margin: auto;
}
