body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#map {
  height: 70vh;
}

.styled-table {
  border-collapse: collapse;
  margin: 5px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 10px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); */
}

.styled-table thead tr {
  background-color: #009879;
  color: #ffffff;
  text-align: left;
}

.styled-table thead th {
  font-weight: bold;
  font-size: 1.1em;
}

.styled-table th,
.styled-table td {
  padding: 7px 10px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f1f1f1;
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #009879;
}

.styled-table tbody tr.active-row {
  font-weight: bold;
  color: #009879;
}
 
.star {
  font-size: 1.2rem;
  cursor: pointer;
}

.star.selected {
  color: gold;
}

.rating-stars {
  color: #FFD700;
  /* Warna kuning emas */
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.rating-stars .bintang {
  font-size: 1.5rem;
  color: #ccc; /* default abu untuk bintang kosong */
  margin: 0 1px;
}

.rating-stars .bintang.aktif {
  color: #FFD700; /* kuning emas untuk bintang aktif */
}

 
.card-info {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 200px;
}
.card-info:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card-info .card-body {
  font-size: 0.95rem;
} 



/* SPESIAL CARD  */

.card-alt {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-alt:hover {
  transform: translateY(-3px);
}

.card-img-body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  min-height: 220px;
}

.card-body {
  padding: 1rem;
}

.card-alt:nth-child(even) .row {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .card-alt .row {
    flex-direction: column !important;
  }

  .card-img-body {
    height: 200px;
  }
}

/* chart */ 
/* last oke lah chrome ja rewel */
/* .chart-container {
  width: 100%;
  height: 400px;
}

@media (max-width: 768px) {
  .chart-container {
    height: 400px;
  }
}

canvas {
  width: 100% !important;
  height: 100% !important;
} */

.chart-container {
  position: relative;
  width: 100%;
  height: 400px;
}

@media (max-width: 768px) {
  .chart-container {
    height: 300px; /* opsional lebih kecil untuk mobile */
  }
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}


/* Animasi Statistik card */
.card-stat {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.card-stat:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
} 

/* hover dan untuk about cards */

.logo-container {
  perspective: 1000px;
  display: inline-block;
}
.logo-3d {
  transition: transform 0.4s ease;
}
.logo-3d:hover {
  transform: rotateY(15deg) rotateX(5deg) scale(1.05);
} 


.animated-waves {
  position: relative;
  width: 100%;
  height: 150px;
  margin-top: -80px;
  overflow: hidden;
  background: linear-gradient(to top, #f8f9fa, transparent);
}

.wave {
  position: absolute;
  width: 200%;
  height: 100%;
  bottom: 0;
  background-repeat: repeat no-repeat;
  background-position: 0 bottom;
  transform: translate3d(0, 0, 0);
  animation: waveAnimation 10s linear infinite;
  opacity: 0.6;
}

.wave1 {
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='150' viewBox='0 0 1000 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%230075c2' d='M0 40 C 150 80, 350 0, 500 40 S 850 80, 1000 40 V100 H0 Z'/%3E%3C/svg%3E");
  z-index: 4;
  animation-delay: 0s;
}

.wave2 {
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='150' viewBox='0 0 1000 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2300aaff' d='M0 50 C 200 90, 300 10, 500 50 S 800 90, 1000 50 V100 H0 Z'/%3E%3C/svg%3E");
  z-index: 3;
  animation-delay: -2s;
}

.wave3 {
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='150' viewBox='0 0 1000 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2380dfff' d='M0 60 C 100 100, 400 20, 500 60 S 700 100, 1000 60 V100 H0 Z'/%3E%3C/svg%3E");
  z-index: 2;
  animation-delay: -4s;
}

.wave4 {
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='190' viewBox='0 0 1000 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ccefff' d='M0 70 C 250 90, 300 30, 500 70 S 850 90, 1000 70 V100 H0 Z'/%3E%3C/svg%3E");
  z-index: 1;
  animation-delay: -6s;
  opacity: 0.8;
}

@keyframes waveAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
} 



/* footer cards */
.support-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.support-item {
  flex: 0 0 48%;
  max-width: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.support-item img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.support-item img:hover {
  transform: scale(1.25) rotate(1deg);
}

/* Jika jumlah item ganjil, tengahkan terakhir */
.support-logos .support-item:nth-last-child(1):nth-child(odd) {
  flex-basis: 100%;
  justify-content: center;
} 


/* harga pangan update */

.hide {
  display: none !important;
}
 
.fade-item {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade-item.hide {
  opacity: 0;
  pointer-events: none;
}
