/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  outline: none;
  cursor: pointer;
}

img {
  width: 100%;
  display: block;
}

/* App Container */
.app-container {
  max-width: 600px;
  margin: auto;
  padding: 1rem;
  min-height: 100vh;
}

/* Header */
header {
  margin-bottom: 1.5rem;
}

.greeting {
  font-size: 1rem;
  font-weight: bold;
  color: #046937;
}

.location {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.3rem;
  color: #222;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.8rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  font-size: 0.95rem;
}

/* Donation Card */
.donation-card {
  background: linear-gradient(135deg, #046937, #059669);
  color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.total-donation {
  font-size: 2rem;
  font-weight: bold;
}

.label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.service i {
  font-size: 1.8rem;
  color: #046937;
  margin-bottom: 0.5rem;
  display: block;
}

.service span {
  font-size: 0.85rem;
  display: block;
  color: #333;
}

.service:hover {
  transform: translateY(-5px);
}

/* Promo Banner */
.promo-banner .slider {
  position: relative;
  overflow: hidden;
  height: 160px;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }

.banner-text {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 10px;
}

.banner-text h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.banner-text button {
  background: white;
  color: #046937;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1rem;
}

@keyframes slideShow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  45% { opacity: 1; }
  55% { opacity: 0; }
  100% { opacity: 0; }
}

/* Performa CS */
.cs-performance h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.cs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-item {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cs-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cs-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.cs-nama {
  font-weight: bold;
  font-size: 0.95rem;
}

.cs-tim {
  font-size: 0.8rem;
  color: #777;
}

.cs-perolehan .jumlah {
  font-size: 1rem;
  font-weight: bold;
}

.cs-perolehan .persen {
  font-size: 0.8rem;
  margin: 0.3rem 0;
}
.cs-hidden {
  display: none;
}
/* Menu Bar */
.menu-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #046937; /* Warna pastel lembut */
  border-radius: 20px; /* Sudut melengkung */
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Efek bayangan lembut */
  width: 100%;
  max-width: 350px; /* Lebar maksimum */
  max-height: 60px;
  margin: 20px auto; /* Sentralisasi */
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-item {
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease; /* Transisi warna saat hover */
}

.menu-item i {
  font-size: 20px;
  color: #c7c7c7; /* Warna abu-abu muda */
}

.menu-item span {
  display: block;
  font-size: 10px;
  color: #c7c7c7; /* Warna abu-abu muda */
  margin-top: 3px;
}

/* Efek aktif (active) */
.menu-item.active {
  color: #03f27b; /* Warna merah muda terang */
}

.menu-item.active i,
.menu-item.active span {
  color: #ffffff; /* Warna merah muda terang */
}

.toggle-button-wrapper {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 5.5rem; /* Jarak bawah tombol */
}

.action-button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #046937;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.action-button:hover {
  background-color: #035a2b;
}