/* Custom Stylesheet for Pondok Pesantren Darul Muttaqin Batu */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@600;700;800&display=swap');

:root {
  --primary-green: #15803d;
  --primary-dark: #064e3b;
  --primary-light: #22c55e;
  --accent-gold: #d97706;
  --accent-lime: #84cc16;
  --accent-orange: #ea580c;
  --surface-bg: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
  background-color: var(--surface-bg);
  overflow-x: hidden;
}

.font-arabic {
  font-family: 'Amiri', serif;
}

.font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

/* Islamic Geometric Pattern Subtle Overlays */
.bg-islamic-pattern {
  background-color: #064e3b;
  background-image: radial-gradient(#15803d 0.75px, transparent 0.75px), radial-gradient(#15803d 0.75px, #064e3b 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.bg-islamic-light {
  background-color: #f0fdf4;
  background-image: radial-gradient(#86efac 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* Custom Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(6, 78, 59, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover glow */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(21, 128, 61, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Progress bar animation */
@keyframes progressStripes {
  from { background-position: 1rem 0; }
  to { background-position: 0 0; }
}

.progress-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  animation: progressStripes 1s linear infinite;
}

/* Print Styling for Kartu Pendaftaran & Kwitansi */
@media print {
  body * {
    visibility: hidden;
  }
  #printableArea, #printableArea * {
    visibility: visible;
  }
  #printableArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 15px;
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
}

/* Status badge pills */
.badge-menunggu {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-verifikasi {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}
.badge-lulus {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.badge-ditolak {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ======================================================== */
/* FOTO KEGIATAN BERJALAN (RUNNING ACTIVITIES MARQUEE)      */
/* ======================================================== */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  width: 100%;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
  will-change: transform;
}

.marquee-track-reverse {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScrollReverse 45s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Mobile Friendliness & Touch Optimizations */
@media (max-width: 640px) {
  .marquee-track, .marquee-track-reverse {
    gap: 0.75rem;
    animation-duration: 32s;
  }
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-4\/3 {
  aspect-ratio: 4 / 3;
}


