/* Custom Stylesheet - Municipal QR Code Generator */

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(243, 244, 246, 0.5);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.95; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Glassmorphism panel effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.glass-panel-dark {
  background: rgba(88, 28, 135, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

/* Custom range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e9d5ff;
  border-radius: 999px;
  outline: none;
  transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7e22ce;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 6px -1px rgba(126, 34, 206, 0.4);
  transition: transform 0.1s, background-color 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #6b21a8;
}

/* Dynamic input focus styling */
.focus-ring {
  transition: all 0.2s ease-in-out;
}
.focus-ring:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

/* Card hover scaling */
.card-interactive {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1), 0 4px 6px -2px rgba(139, 92, 246, 0.05);
}

/* Custom tab styles */
.tab-btn {
  position: relative;
  transition: color 0.2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #7e22ce;
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}
.tab-btn.active {
  color: #7e22ce;
}
.tab-btn.active::after {
  transform: scaleX(1);
}

/* QR Code styling preview container */
#qr-preview-wrapper svg, #qr-preview-wrapper canvas {
  margin: 0 auto;
  max-width: 100%;
  height: auto !important;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  background-color: transparent;
  transition: transform 0.3s ease;
}

#qr-preview-wrapper svg:hover, #qr-preview-wrapper canvas:hover {
  transform: scale(1.02);
}
