/* Global Styles from src/assets/index.css */
body {
    background: #f6f7f6;
    display: flex;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.app-container {
    padding: 1rem;
    max-width: 420px !important;
    min-width: 420px !important;
    min-height: 100vh;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header h6 {
    margin: 0;
    color: #1e7d3a;
    font-weight: 600;
}

/* Bottom Nav Fix */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 420px !important; /* Force match app container */
    left: 50%; /* Center relative to viewport */
    transform: translateX(-50%); /* Center alignment */
    background: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 9999;
    padding: 0.5rem 0;
}

.bottom-nav .nav-link {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.bottom-nav .nav-link.active {
    color: #1e7d3a;
    font-weight: 600;
}

.main-content {
    /* overflow: auto; REMOVED: This creates a new scroll context that breaks sticky if height is not constrained */
    overflow: visible; /* Restore body scrolling context */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 80px; /* Space for bottom nav */
}
.main-content::-webkit-scrollbar {
    display: none;
}

/* Home Styles */
.banner {
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.menu-icon {
    width: 55px;
    height: 55px;
    background: #e9f6ef;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #1e7d3a;
    margin: auto;
}

.menu-label {
    font-size: 12px;
    margin-top: 6px;
}

.card-masjid {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.card-masjid img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}

/* Card Styling from Home.vue */
.masjid-img {
    height: 250px;
    object-fit: cover;
}
.card-top-label {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.jenis-badge {
    padding: 4px 8px;
    background: #39805b;
    color: #f3faf6;
    font-size: 14px;
    border-radius: 4px;
}

/* QRIS Card Styles */
.qris-card {
    margin: 20px auto;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}

.qris-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.qris-logo-text { font-weight: 900; font-size: 20px; line-height: 1; color: #000; }
.qris-gpn-text { font-weight: 900; font-size: 20px; line-height: 1; color: #e30613; }
.qris-tagline-text { font-size: 9px; color: #000; line-height: 1; font-weight: 500; }

.qris-banner-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.qris-banner-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100px; height: 100%;
    background: #e30613;
    transform: skewX(-20deg) translateX(-50px);
    transform-origin: top left;
}
.qris-banner-strip::after {
    content: "";
    position: absolute;
    top: 0; right: 0; width: 100px; height: 100%;
    background: #e0e0e0;
    transform: skewX(-20deg) translateX(50px);
    transform-origin: top right;
}

.qris-content {
    position: relative;
    z-index: 10;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.qris-merchant-info {
    text-align: center;
    margin-bottom: 15px;
    margin-top: 15px;
}
.qris-merchant-info h5 { font-weight: 700; font-size: 18px; margin-bottom: 2px; color: #000; }
.qris-merchant-info small { font-size: 11px; color: #6c757d; }

.qris-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-direction: column;
}
.qris-qr-code {
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 10px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Utilities */
[v-cloak] { display: none; }
.text-success { color: #1e7d3a !important; }
.bg-success-subtle { background-color: #d1e7dd !important; color: #0f5132 !important; }
.btn-primary { background-color: #007c63; border-color: #007c63; }
.btn-primary:hover { background-color: #006551; border-color: #006551; }

/* Swiper Fixes */
.swiper-pagination-bullet-active { background: #1e7d3a !important; }

/* Mobile Responsive */
@media (max-width: 420px) {
    .app-container, .bottom-nav {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* Additional Styles from Migrated Components */
/* Berita Detail */
.berita-content-collapsed {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}
.berita-content-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff);
}

/* Masjid Detail Styles */
.MasjidDetail .card {
    transition: transform 0.2s;
}
.MasjidDetail .masjid-image-wrapper {
    position: relative;
    overflow: hidden;
}
.MasjidDetail .masjid-image-wrapper img {
    transition: transform 0.3s ease;
}
.MasjidDetail .card:hover .masjid-image-wrapper img {
    transform: scale(1.05);
}    background: linear-gradient(to bottom, transparent, white);
}

/* Program Detail */
.progress-bar {
    background-color: #1e7d3a;
}
.program-stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f6;
}

/* Copied from BeritaDetail.css */

/* BeritaDetail Styles */
.berita-content {
    line-height: 1.6;
    word-wrap: break-word;
    transition: max-height 0.3s ease;
}

.berita-content-collapsed {
    max-height: calc(1.6em * 20);
    overflow: hidden;
    position: relative;
}

.berita-content-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}


/* Copied from BeritaList.css */

/* BeritaList Styles */
.berita-list-item {
    transition: transform 0.2s ease-in-out;
}

.berita-list-item:hover {
    transform: translateY(-2px);
}

.load-more-trigger {
    height: 20px;
    width: 100%;
}


/* Copied from donasiForm.css */

.form-label-color {
    color: #458654!important;
    margin-bottom: .24rem!important;
    font-size: 0.84rem;
}

/* Copied from donasiPayment.css */

/* QRIS Card Wrapper */
.qris-card-wrapper {
  max-width: 450px!important;
  margin: 0 auto;
}

.qris-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.qris-banner-strip {
  height: 8px;
  background: linear-gradient(90deg, #0066cc 0%, #00aaff 100%);
}

.qris-content {
  padding: 24px;
}

.qris-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.qris-header-logos {
  display: flex;
  align-items: center;
}

.qris-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #0066cc;
  letter-spacing: 1px;
}

.qris-tagline-text {
  font-size: 10px;
  color: #666;
  line-height: 1.2;
}

.qris-gpn-text {
  font-size: 12px;
  font-weight: 600;
  color: #0066cc;
  background: #e6f2ff;
  padding: 4px 8px;
  border-radius: 4px;
}

.qris-merchant-info {
  margin-bottom: 20px;
}

.qris-merchant-info h5 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.qris-merchant-info small {
  font-size: 12px;
  color: #666;
}

/* Countdown Timer */
.countdown-timer {
  display: flex;
  justify-content: center;
}

.countdown-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  display: inline-flex;
  align-items: center;
}

.countdown-badge i {
  font-size: 16px;
}

.countdown-badge strong {
  font-size: 16px;
  margin-left: 4px;
  font-family: 'Courier New', monospace;
}

/* QR Code */
.qris-qr-code-wrapper {
  margin: 20px 0;
}

.qris-qr-code {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
  display: inline-block;
  margin-bottom: 16px;
}

.qr-image {
  max-width: 250px;
  height: auto;
  display: block;
}

.qr-placeholder {
  width: 250px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.qr-placeholder i {
  font-size: 64px;
  opacity: 0.5;
}

.qris-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qris-actions .btn {
  min-width: 120px;
}

/* Payment Amount */
.payment-amount {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.amount-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.amount-value {
  font-size: 24px;
  font-weight: 700;
  color: #0066cc;
}

.invoice-info {
  font-size: 11px;
}

.invoice-info code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #666;
}

/* Payment Instructions */
.payment-instructions {
  max-width: 450px;
  margin: 0 auto;
}

.payment-instructions .alert {
  border-radius: 8px;
  border-left: 4px solid #0066cc;
}

/* Payment Expired */
.payment-expired {
  max-width: 400px;
  margin: 0 auto;
}

.expired-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.expired-icon {
  font-size: 80px;
  color: #dc3545;
  opacity: 0.8;
}

/* Payment Success */
.payment-success {
  max-width: 450px;
  margin: 0 auto;
}

.success-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.success-icon {
  font-size: 80px;
  color: #28a745;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.receipt-card {
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  max-width: 100%;
}

.receipt-header {
  text-align: center;
  padding-bottom: 16px;
}

.receipt-header i {
  font-size: 32px;
}

.receipt-header h6 {
  font-weight: 600;
  color: #333;
}

.receipt-body {
  text-align: left;
}

/* Button Spinner */
.ti-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 576px) {
  .qris-content {
    padding: 16px;
  }

  .qr-image {
    max-width: 200px;
  }

  .qris-actions {
    flex-direction: column;
  }

  .qris-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .amount-value {
    font-size: 20px;
  }
}

/* Error Modal */
#errorModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#errorModal .modal-header {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-radius: 12px 12px 0 0;
}

#errorModal .modal-title {
  color: #dc3545;
  font-weight: 600;
}

#errorModal .modal-body .alert {
  border-radius: 8px;
  border-left: 4px solid #dc3545;
}

#errorModal .modal-footer {
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

/* Copied from EventDetail.css */

/* EventDetail Styles */
.event-content {
    line-height: 1.6;
    word-wrap: break-word;
}

.event-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}


/* Copied from EventList.css */

/* EventList Styles */
.event-list-item {
    transition: transform 0.2s ease-in-out;
}

.event-list-item:hover {
    transform: translateY(-2px);
}

/* GLOBAL PAGINATION STYLES */
/* Disamakan untuk ProgramList, MasjidList, WakafList, EventList */
/* REVERTED: Pagination is no longer sticky/fixed at bottom */
.pagination-sticky {
    position: relative !important; /* Back to normal flow */
    z-index: 1; 
    background: transparent !important; /* Blend with background */
    padding: 2rem 0 1rem 0 !important; /* Increased top padding to separate from content */
    margin-bottom: 3rem !important; /* Increased bottom margin */
    box-shadow: none !important; /* Remove shadow */
    border-top: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure padding at bottom of lists so content isn't hidden behind pagination */
/* Reduced padding since pagination is in flow now */
.MasjidList, .ProgramList, .wakafList, .EventList {
    padding-bottom: 80px !important; 
}

/* GLOBAL HEADER STICKY STYLES */
/* Applies to search bars and filter headers in list views */
.sticky-top {
    position: sticky !important;
    top: 56px !important; /* Offset for the main app header (approx 56px height) */
    z-index: 1020 !important;
    background-color: #fff !important;
    padding-top: 1rem !important; /* Add breathing room */
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
}

/* Ensure container has proper spacing */
.MasjidList, .ProgramList, .wakafList, .EventList {
    padding-top: 0 !important; /* Let sticky header handle spacing */
}

/* Special case: If there is no global header above it (e.g. if we scrolled past it or it's not fixed),
   but usually the app-header is sticky too? 
   Wait, the user said "header di halaman home itu akan selalu muncul".
   Let's check .app-header style.
*/
.app-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important; /* Higher than search bar */
    background: #fff;
    width: 100%;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
    margin-top: 3rem!important;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Increased gap */
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem; /* Add padding inside container */
}

.pagination-btn {
    min-width: 36px; /* Minimum width for circle shape on small numbers */
    height: 36px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.6rem;
    padding: 0 6px; /* Add horizontal padding for large numbers */
    margin: 0 2px;
}

/* Specific rule for buttons with large numbers to become pills instead of circles */
.pagination-page {
    border-radius: 18px; /* Rounded pill shape */
    width: auto; /* Allow expansion */
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #198754; /* Bootstrap success color */
    color: white;
    border-color: #198754;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.pagination-btn.ellipsis {
    border: none;
    cursor: default;
    background: transparent;
}

.pagination-btn.ellipsis:hover {
    background: transparent;
    transform: none;
}

.pagination-nav {
    background: #fff;
}

.pagination-nav:hover:not(:disabled) {
    background: #f1f3f5;
}

.pagination-pages {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Copied from Favorite.css */

/* Copying styles from MasjidList */
.skeleton-card {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Pagination Sticky (disamakan dengan ProgramList dan EventList) */
.pagination-sticky {
    position: sticky;
    bottom: 0px;
    z-index: 100;
    background: white;
    padding: 1rem 0;
    margin-bottom: 0 !important;
    margin-top: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 30px;
    height: 30px;
    max-width: 30px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.pagination-btn.ellipsis {
    border: none;
    cursor: default;
    background: transparent;
}

.pagination-btn.ellipsis:hover {
    background: transparent;
    transform: none;
}

.pagination-nav {
    background: #f8f9fa;
}

.pagination-nav:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination-pages {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Copied from HitungZakat.css */

/* HitungZakat Styles */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    background: transparent;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
    color: #198754;
    background: #f8f9fa;
    border-bottom: 2px solid #198754;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: #198754;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}


/* Copied from Home.css */

[v-cloak] {
	display: none;
}

#home.mySwiper {
	width: 94%;
	height: 264px;
	border-radius: 8px;
	position: relative;
	overflow: visible; /* biar pagination bisa keluar */
	padding-bottom: 25px; /* ruang buat dots */
}

#home.swiper-pagination {
	bottom: 5px !important; /* posisinya di bawah gambar */
}

#home.mySwiper img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* bisa diganti contain kalau mau full terlihat */
	display: block;
}

/* style custom untuk pagination */
#home.swiper-pagination-bullet {
	background: #ccc;
	opacity: 1;
}

#home.swiper-pagination-bullet-active {
	background: #1e7d3a !important; /* hijau, sesuai tema */
}

#home.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
	height: 0px !important;
	top: 21rem !important;
}

/* Copied from LazDetail.css */


/* Copied from lazList.css */


/* Copied from ListComment.css */

.comment-item {
    transition: background-color 0.2s;
}

.comment-item:hover {
    background-color: rgba(25, 135, 84, 0.02);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-content {
    min-width: 0;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    padding: 0.75rem 0;
    margin: -0.25rem -0.5rem 1rem -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ctm-height {
    height: calc(100vh - 300px);
    overflow-y: auto;
    scrollbar-width: none;
}

/* Copied from MasjidDetail.css */


/* Copied from MasjidList.css */

/* MasjidList Styles */
.pagination-sticky {
    position: sticky;
    bottom: 0px;
    z-index: 100;
    background: white;
    padding: 1rem 0;
    margin-bottom: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 30px;
    height: 30px;
    max-width: 30px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.pagination-btn.ellipsis {
    border: none;
    cursor: default;
    background: transparent;
}

.pagination-btn.ellipsis:hover {
    background: transparent;
    transform: none;
}

.pagination-nav {
    background: #f8f9fa;
}

.pagination-nav:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination-pages {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Copied from MasjidMap.css */

.MasjidMap {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #f6f7f6;
}

/* Map Container */
.map-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90vh;
    z-index: 1;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom Zoom Control */
.leaflet-control-zoom {
    margin-bottom: calc(75vh + 1rem) !important;
    margin-right: 1.75rem !important;
    border: none !important;
}

.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    background: white !important;
    color: #333 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a:hover {
    background: #f0f0f0 !important;
    color: #007c63 !important;
}

/* Filter Container */
.filter-container {
    position: absolute;
    top: 0.84rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 2rem);
    max-width: 380px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.375rem;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.filter-btn {
    flex: 1;
    padding: 0.625rem 1.25rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.filter-btn.active {
    background: #007c63;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 124, 99, 0.2);
}

/* Masjid Slider Container */
.masjid-slider-container {
    position: absolute;
    bottom: 6rem;
    left: 0;
    right: 0;
    height: 40vh;
    background: white;
    border-radius: 0.64rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem;
    overflow: hidden;
}

/* Slider Handle Bar */
.slider-handle {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    z-index: 1001;
}

/* Gradient Fade Overlay */
.slider-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 1001;
    pointer-events: none;
}

.slider-gradient-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.slider-gradient-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.masjid-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 1rem 0.5rem 0;
    height: calc(100% - 1.5rem);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.masjid-slider::-webkit-scrollbar {
    height: 4px;
}

.masjid-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.masjid-slider::-webkit-scrollbar-thumb {
    background: #007c63;
    border-radius: 2px;
}

.masjid-slider::-webkit-scrollbar-thumb:hover {
    background: #006b54;
}

/* Masjid Card */
.masjid-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.masjid-card:hover {
    border-color: #007c63;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.masjid-card.active {
    border-color: #007c63;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0, 124, 99, 0.25);
    transform: scale(1.02);
    z-index: 10;
}

.masjid-card.card-clicking {
    transform: scale(0.99);
}

.masjid-card.card-highlight {
    animation: cardPulse 0.5s ease-out;
}

@keyframes cardPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(0, 124, 99, 0.25);
    }
}

.masjid-card-image {
    position: relative;
    width: 100%;
    height: 184px;
    overflow: hidden;
    background: #f0f0f0;
}

.masjid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masjid-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 124, 99, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

.masjid-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masjid-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge jenis masjid di dalam kartu â€“ lebih transparan */
.masjid-type-badge {
    background-color: rgba(25, 135, 84, 0.12) !important;
    /* hijau Bootstrap dengan transparansi */
    color: #198754 !important;
    border: 1px solid rgba(25, 135, 84, 0.25);
}

.masjid-card-subtitle {
    font-size: 0.8125rem;
    color: #666;
    margin: 0 0 0.75rem 0;
}

.masjid-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-details {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #007c63;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-details:hover {
    background: #006b54;
}

.btn-share {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-share:hover {
    background: #e0e0e0;
    color: #007c63;
}

/* User Marker Styles */
.custom-user-marker {
    background: transparent !important;
    border: none !important;
}

.user-marker-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-marker-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 124, 99, 0.3);
    animation: userPulse 2s ease-out infinite;
}

.user-marker-inner {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007c63;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.user-marker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

@keyframes userPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Masjid Marker Styles */
.custom-masjid-marker {
    background: transparent !important;
    border: none !important;
}

.masjid-marker-container {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.masjid-marker-shadow {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(4px);
    transition: all 0.3s ease;
}

.masjid-marker-pin {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--marker-color, #007c63);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.masjid-marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 18px;
}

/* Marker Hover Effect */
.custom-masjid-marker.marker-hover .masjid-marker-pin {
    transform: rotate(-45deg) scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.custom-masjid-marker.marker-hover .masjid-marker-shadow {
    width: 22px;
    height: 9px;
    filter: blur(5px);
}

/* Marker Selected Effect */
.custom-masjid-marker.marker-selected .masjid-marker-pin {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 0 0 8px rgba(0, 124, 99, 0.2), 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: markerSelected 0.6s ease-out;
}

@keyframes markerSelected {

    0%,
    100% {
        transform: rotate(-45deg) scale(1.2);
    }

    50% {
        transform: rotate(-45deg) scale(1.35);
    }
}

/* Marker Bounce Animation */
.marker-bounce {
    animation: markerBounce 0.6s ease-out;
}

@keyframes markerBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-15px) scale(1.1);
    }

    50% {
        transform: translateY(0) scale(1.15);
    }

    75% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Marker Ripple Effect */
.marker-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 124, 99, 0.4);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 1rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
}

/* Hide popup tip (white triangle) */
.leaflet-popup-tip {
    display: none !important;
}

/* Hide popup close button */
.leaflet-popup-close-button {
    display: none !important;
}

.custom-popup {
    border-radius: 1rem !important;
}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
    bottom: 28px !important;
}

/* Loading & Empty States */
.loading-container,
.empty-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    color: #666;
}

.empty-container i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Detail Popup */
.detail-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.detail-popup.show {
    opacity: 1;
    visibility: visible;
}

.detail-popup-content {
    background: white;
    max-width: 420px !important;
    min-width: 420px !important;
    max-height: 85vh;
    margin: auto;
    border-radius: 1.5rem;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    scrollbar-width: none;
}

.detail-popup.show .detail-popup-content {
    transform: translateY(0);
}

.detail-popup-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    border-radius: 1.5rem 1.5rem 0 0;
}

.detail-popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
}

.btn-close-popup {
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.btn-close-popup:hover {
    background: #e0e0e0;
    color: #333;
}

.detail-popup-body {
    padding: 1.5rem;
}

.detail-info {
    margin-bottom: 1.5rem;
}

.detail-address {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: flex-start;
}

.detail-address i {
    margin-top: 0.125rem;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-item {
    padding: 0.375rem 0.75rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-item.verified {
    background: #d1f2e8;
    color: #007c63;
}

.badge-item.distance {
    background: #e6f5ff;
    color: #0066cc;
}

.detail-waktu-sholat {
    margin-bottom: 1.5rem;
}

.detail-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
}

.detail-information {
    margin-top: 1rem;
}

.detail-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.detail-info-item i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.detail-info-item .text-muted {
    min-width: 100px;
}

.detail-info-item a {
    color: #007c63;
}

.detail-info-item a:hover {
    text-decoration: underline !important;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-image img {
    border-radius: 0.75rem;
}

.detail-deskripsi {
    margin-bottom: 1rem;
}

.deskripsi-content {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.detail-popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e5e5;
    background: white;
    position: sticky;
    bottom: 0;
}

.btn-action {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google-maps {
    background: #007c63;
    color: white;
}

.btn-google-maps:hover {
    background: #006b54;
    transform: translateY(-1px);
}

/* Custom Marker */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Responsive */
@media (max-width: 420px) {
    .masjid-card {
        flex: 0 0 260px;
    }

    .waktu-sholat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .filter-buttons {
        padding: 0.375rem;
    }

    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Copied from ProgramDetail.css */


/* Copied from ProgramList.css */

/* ProgramList Styles */
.pagination-sticky {
    position: sticky;
    bottom: 0px;
    z-index: 100;
    background: white;
    padding: 1rem 0;
    margin-bottom: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 30px;
    height: 30px;
    max-width: 30px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.pagination-btn.ellipsis {
    border: none;
    cursor: default;
    background: transparent;
}

.pagination-btn.ellipsis:hover {
    background: transparent;
    transform: none;
}

.pagination-nav {
    background: #f8f9fa;
}

.pagination-nav:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination-pages {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Kategori Chips Styles */
.kategori-chips-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.kategori-chips-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.kategori-chips-wrapper {
    display: flex;
    gap: 0.75rem;
    padding: 0.25rem 0;
    min-width: max-content;
}

.kategori-chip {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kategori-chip:hover {
    border-color: #198754;
    color: #198754;
    background-color: #f8fff9;
    transform: translateY(-1px);
}

.kategori-chip.active {
    background-color: #198754;
    color: #fff;
    border-color: #198754;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

.kategori-chip.active:hover {
    background-color: #157347;
    border-color: #157347;
    transform: translateY(-1px);
}

/* Copied from Riwayat.css */

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.pagination-container {
    display: flex;
    flex-direction: row !important; /* Force row */
    align-items: center;
    justify-content: center; /* Centering items */
    background-color: #fff;
    padding: 16px 8px; /* Slightly smaller padding */
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft shadow */
    gap: 8px; /* Slightly reduced gap */
    max-width: 100%;
    width: auto; /* Let it shrink/grow */
    flex-wrap: nowrap !important; /* Prevent ANY wrapping */
}

/* Nav Buttons (< >) */
.pagination-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pagination-nav:hover:not(:disabled) {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.pagination-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f3f5;
}

/* Page Numbers Helper Div */
.pagination-pages {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.pagination-page {
    width: 32px; /* Slightly smaller */
    height: 32px;
    border-radius: 50%; /* Circle */
    border: none;
    background-color: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pagination-page:hover:not(.active):not(.ellipsis) {
    background-color: #f8f9fa;
    color: #198754; /* Green hover */
}

.pagination-page.active {
    background-color: #198754;
    color: white; /* Green active */
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.pagination-page.ellipsis {
    cursor: default;
    width: auto;
    padding: 0 4px;
}

.pagination-page.ellipsis:hover {
    background-color: transparent;
    color: #6c757d;
}

/* Copied from wakafDetail.css */


/* Copied from wakafList.css */

/* WakafList Styles */
.pagination-sticky {
    position: sticky;
    bottom: 50px;
    z-index: 100;
    background: white;
    padding: 1rem 0;
    margin-bottom: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.675rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}

.pagination-btn.ellipsis {
    border: none;
    cursor: default;
    background: transparent;
}

.pagination-btn.ellipsis:hover {
    background: transparent;
    transform: none;
}

.pagination-nav {
    background: #f8f9fa;
}

.pagination-nav:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination-pages {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}


/* Copied from WaktuSholat.css */

.WaktuSholat {
    min-height: 100vh;
    background: #f6f7f6;
    padding-bottom: 1rem;
}

/* Prayer Times Display */
.prayer-times-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    border-radius: 1.5rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.prayer-times-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(0, 124, 99, 0.05);
    border-radius: 50%;
}

/* Prayer Navigation */
.prayer-nav-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prayer-nav-container::-webkit-scrollbar {
    display: none;
}

.prayer-nav-btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.prayer-nav-btn:hover {
    color: #007c63;
}

.prayer-nav-btn.active {
    color: #007c63;
    font-weight: 700;
}

.prayer-nav-dot {
    width: 6px;
    height: 6px;
    background: #007c63;
    border-radius: 50%;
}

/* Prayer Main Display */
.prayer-main-display {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.prayer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.prayer-time-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: #007c63;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.next-prayer-info {
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.prayer-date {
    font-size: 0.8125rem;
    color: #666;
}

/* All Prayer Times Grid */
.all-prayer-times {
    margin-top: 1rem;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.prayer-time-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.prayer-time-item:hover {
    border-color: #007c63;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 124, 99, 0.15);
}

.prayer-time-item.active {
    background: #e8f5e9;
    border-color: #007c63;
}

.prayer-icon {
    font-size: 1.5rem;
    color: #007c63;
    margin-bottom: 0.5rem;
}

.prayer-time-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.prayer-time-jam {
    font-size: 0.875rem;
    font-weight: 700;
    color: #007c63;
}

/* Masjid Section */
.masjid-section {
    margin-top: 1rem;
    margin-bottom: 4rem;
}

/* Masjid Slider */
.masjid-slider-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.masjid-slider-container::-webkit-scrollbar {
    display: none;
}

.masjid-slider {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

/* Masjid Card */
.masjid-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.masjid-card:hover {
    border-color: #007c63;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.masjid-card.active {
    border-color: #007c63;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0, 124, 99, 0.25);
}

.masjid-card-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f0f0f0;
}

.masjid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.masjid-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masjid-card-type {
    margin: 0;
}

.masjid-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.masjid-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
}

.masjid-info-item i {
    margin-top: 0.125rem;
    flex-shrink: 0;
    color: #007c63;
}

.masjid-info-item span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masjid-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masjid-card-prayer {
    margin-bottom: 0.75rem;
}

.prayer-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    color: #666;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.btn-donate {
    width: 100%;
    padding: 0.625rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-donate:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 420px) {
    .prayer-time-large {
        font-size: 2.5rem;
    }
    
    .masjid-card {
        flex: 0 0 260px;
    }
}

