/* Style overrides and custom utility classes for Joo Store 09 */

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #0b0f19;
  color: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* Custom glow effect */
.glow-primary {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.glow-accent {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover:hover {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* QRIS scanning line animation */
@keyframes scan-animation {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

.animate-scan {
  position: relative;
  overflow: hidden;
}

.animate-scan::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(to bottom, transparent, #06b6d4, transparent);
  left: 0;
  animation: scan-animation 3s linear infinite;
  box-shadow: 0 0 10px #06b6d4;
}

/* Custom inputs styling */
input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* SPA Transitions */
.view-section {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* Skeleton loader style */
.shimmer {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
