/* Custom styles for GEMPITA - Gerakan Masyarakat Peduli dan Pilah Sampah Kita */

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

:root {
  --primary-color: #10b981;
  --primary-dark: #059669;
  --secondary-color: #3b82f6;
  --secondary-dark: #2563eb;
  --bg-main: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

.dark-theme {
  --bg-main: #0f172a;
  --bg-sidebar: #1e293b;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark-theme ::-webkit-scrollbar-thumb {
  background: #475569;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark-theme .glass-panel {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Pulsing markers */
.pulse-green {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-g 2s infinite;
}
@keyframes pulse-g {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Custom Sidebar Hover */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
}
.sidebar-link:hover, .sidebar-link.active {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
}
.dark-theme .sidebar-link:hover, .dark-theme .sidebar-link.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Card Styling */
.card-hover-effect {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Print styles override */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .sidebar, .nav-header, .no-print {
    display: none !important;
  }
  .print-area {
    width: 100% !important;
    position: absolute;
    left: 0;
    top: 0;
  }
}

/* --- ANIMASI LANDING PAGE & KABUPATEN BANDUNG --- */

/* Floating Animations for Waste Management Icons */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.2; }
  50% { transform: translateY(-40px) rotate(15deg) scale(1.1); opacity: 0.5; }
  100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.2; }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.2; }
  50% { transform: translateY(40px) rotate(-15deg) scale(1.1); opacity: 0.5; }
  100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.2; }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-reverse 10s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-float-fast {
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* Modal Entrance */
@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.85) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-animate-in {
  animation: modal-enter 0.5s cubic-bezier(0.2, 1.2, 0.3, 1) forwards;
}

/* Glowing text for BEDAS */
@keyframes bedas-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); transform: scale(1); }
  50% { text-shadow: 0 0 25px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.5); transform: scale(1.02); }
}
.bedas-text {
  animation: bedas-glow 3s infinite;
  display: inline-block;
}
