/* --- index.css: Styling Optimal Desktop & Mobile dengan Fluid Typography --- */
body {
  background-color: #f4f6fa !important;
}

.hero-container {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #cbd5e1;
  padding: 2rem 1rem;
}

/* Menggunakan clamp() agar judul utama beradaptasi mulus di berbagai ukuran layar */
.hero-title {
  color: #0f172a !important;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.2;
}

/* Subjudul menyesuaikan ukuran layar secara dinamis */
.hero-subtitle {
  color: #206bc4 !important;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
}

/* Responsivitas Navbar Brand di Halaman Utama */
.navbar-brand {
  font-size: clamp(0.9rem, 2vw, 1.25rem) !important;
  white-space: normal;
}

.view-section {
  transition: all 0.3s ease-in-out;
}

.d-none {
  display: none !important;
}

.payment-option-card {
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.payment-option-card:hover {
  border-color: #206bc4;
  background-color: #f8fafc;
}

.payment-option-card.selected {
  border-color: #206bc4;
  background-color: #f0f7ff;
}

/* Sembunyikan elemen tertentu sesuai konfigurasi */
#CheckBooking, #Referral, #ref {
  display: none !important;
}
/* --- Penyesuaian Responsif Ikon & Tabel untuk Halaman Utama --- */
@media (max-width: 768px) {
  /* Ukuran ikon pada tombol atau kartu informasi */
  .card .ti, .btn .ti {
    font-size: 1rem !important;
  }

  /* Memperkecil font dan padding pada tabel matriks ketersediaan */
  #public-calendar-matrix th, 
  #public-calendar-matrix td {
    padding: 0.4rem 0.3rem !important;
    font-size: 0.75rem !important;
  }
}

/* --- Ubah kursor jadi telunjuk pada tabel matriks pemesanan publik --- */
#public-calendar-matrix td,
#public-calendar-matrix th {
  cursor: pointer !important;
}

/* --- Penyesuaian Global untuk Bootstrap 5 Dark Mode --- */
[data-bs-theme="dark"] body {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .card {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #2c2c2c !important;
}

[data-bs-theme="dark"] .bg-white {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .table {
  color: #e0e0e0 !important;
  border-color: #2c2c2c !important;
}
/* --- Penyesuaian Global untuk Bootstrap 5 Dark Mode --- */
[data-bs-theme="dark"] body {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

/* Mengubah latar belakang hero container saat dark mode */
[data-bs-theme="dark"] .hero-container {
  background: linear-gradient(135deg, #1a202c 0%, #121212 100%) !important;
  border-bottom: 1px solid #2d3748 !important;
}

/* Mengubah warna teks judul utama dan subjudul pada hero section saat dark mode */
[data-bs-theme="dark"] .hero-title {
  color: #f7fafc !important;
}

[data-bs-theme="dark"] .card {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #2c2c2c !important;
}

/* Mengubah elemen ber-background putih (termasuk header dan footer) */
[data-bs-theme="dark"] .bg-white {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #2c2c2c !important;
}

[data-bs-theme="dark"] .table {
  color: #e0e0e0 !important;
  border-color: #2c2c2c !important;
}

[data-bs-theme="dark"] .table-bordered th, 
[data-bs-theme="dark"] .table-bordered td {
  border-color: #2c2c2c !important;
}

/* --- Pengaturan Ukuran Footer Standar (Desktop) --- */
.footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer small {
  font-size: 0.85rem;
}

/* --- Pengaturan Khusus Layar Mobile (Di bawah 768px) --- */
@media (max-width: 768px) {
  #section-dashboard > footer,
  .footer {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  .footer small, 
  .footer .container-fluid {
    font-size: 0.7rem !important;
  }
}