/* Custom CSS utilities for SepatuBandung Cyberpunk Theme */

/* Fonts will be imported in header */

/* Neon grid background pattern */
.bg-grid {
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glassmorphism card */
.glass {
  background: rgba(10, 18, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 245, 255, 0.18);
}

.glass-violet {
  background: rgba(10, 8, 28, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Neon text glow effects */
.glow-cyan {
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.8), 0 0 30px rgba(0, 245, 255, 0.4), 0 0 60px rgba(0, 245, 255, 0.2);
}

.glow-violet {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 30px rgba(168, 85, 247, 0.4);
}

.glow-lime {
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.8), 0 0 30px rgba(163, 230, 53, 0.4);
}

/* Neon border glow */
.border-glow-cyan {
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.3), inset 0 0 8px rgba(0, 245, 255, 0.05);
}

.border-glow-violet {
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3), inset 0 0 8px rgba(168, 85, 247, 0.05);
}

/* Keyframes */
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 245, 255, 0.4), 0 0 20px rgba(0, 245, 255, 0.2); }
  50% { box-shadow: 0 0 16px rgba(0, 245, 255, 0.8), 0 0 40px rgba(0, 245, 255, 0.4), 0 0 80px rgba(0, 245, 255, 0.1); }
}

@keyframes neon-pulse-violet {
  0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.2); }
  50% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.8), 0 0 40px rgba(168, 85, 247, 0.4); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes flicker {
  0%, 98%, 100% { opacity: 1; }
  99% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes slide-in-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes ping-slow {
  0% { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}

.animate-neon-pulse { animation: neon-pulse 2.5s ease-in-out infinite; }
.animate-neon-pulse-violet { animation: neon-pulse-violet 2.5s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-flicker { animation: flicker 4s linear infinite; }
.animate-slide-in-up { animation: slide-in-up 0.5s ease-out forwards; }
.animate-ping-slow { animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Shimmer gradient text */
.text-shimmer {
  background: linear-gradient(90deg, #00f5ff 0%, #a855f7 40%, #a3e635 70%, #00f5ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Cyberpunk button styles */
.btn-cyber {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00f5ff;
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  overflow: hidden;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), transparent);
  transition: opacity 0.2s;
}

.btn-cyber:hover {
  color: #04080f;
  background: #00f5ff;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.6), 0 0 60px rgba(0, 245, 255, 0.2);
}

.btn-cyber-violet {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.5);
}
.btn-cyber-violet:hover {
  color: #fff;
  background: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.btn-cyber-solid {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(0, 245, 255, 0.05));
  border-color: rgba(0, 245, 255, 0.6);
}

/* Input cyber style */
.input-cyber {
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
}

.input-cyber:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.15), 0 0 20px rgba(0, 245, 255, 0.1);
  background: rgba(0, 245, 255, 0.07);
}

.input-cyber::placeholder {
  color: #475569;
}

/* Progress bar neon */
.progress-neon {
  height: 3px;
  background: rgba(0, 245, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.progress-neon-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f5ff, #a855f7);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
  transition: width 0.4s ease;
}

/* Scan line overlay */
.scanline-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 9999;
}

/* Status badge */
.badge-pending { background: rgba(234, 179, 8, 0.15); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-shipped { background: rgba(0, 245, 255, 0.12); color: #00f5ff; border: 1px solid rgba(0, 245, 255, 0.3); }
.badge-completed { background: rgba(163, 230, 53, 0.12); color: #a3e635; border: 1px solid rgba(163, 230, 53, 0.3); }
.badge-cancelled { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: #04080f;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.25);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.5);
}

::selection {
  background: rgba(0, 245, 255, 0.25);
  color: #00f5ff;
}
