/* =========================================== */
/* TEMPLATE-INTERACTIONS-2026-BUNDLE */
/* Generated: 2025-12-12T21:47:52.860Z */
/* Combines 4 CSS files for optimized loading */
/* =========================================== */

/* =========================================== */
/* 1. template/shared/css/advanced-micro-interactions-2026.css */
/* =========================================== */

/* =========================================== */
/* ADVANCED MICRO-INTERACTIONS 2026 */
/* Award-winning UX/UI enhancements */
/* Ripple effects, morphing shapes, particles */
/* =========================================== */

:root {
  /* Ripple Effect Variables */
  --ripple-color: rgba(99, 102, 241, 0.4);
  --ripple-duration: 0.6s;
  --ripple-scale: 4;
  
  /* Morphing Variables */
  --morph-duration: 0.5s;
  --morph-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Particle Variables */
  --particle-count: 8;
  --particle-size: 4px;
  --particle-duration: 1.5s;
  
  /* Spring Physics */
  --spring-stiffness: 0.15;
  --spring-damping: 0.8;
}

/* =========================================== */
/* RIPPLE EFFECTS */
/* Material Design-inspired ripple feedback */
/* =========================================== */

.btn-ripple,
.card-ripple,
.interactive-ripple {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-ripple::before,
.card-ripple::before,
.interactive-ripple::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--ripple-color);
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: width var(--ripple-duration) ease-out,
              height var(--ripple-duration) ease-out,
              opacity calc(var(--ripple-duration) * 0.5) ease-out;
}

.btn-ripple:active::before,
.card-ripple:active::before,
.interactive-ripple:active::before {
  width: calc(100% * var(--ripple-scale));
  height: calc(100% * var(--ripple-scale));
  opacity: 1;
  transition: width var(--ripple-duration) ease-out,
              height var(--ripple-duration) ease-out,
              opacity calc(var(--ripple-duration) * 0.3) ease-out;
}

/* Ripple on click (JavaScript triggered) */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect .ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--ripple-color);
  transform: scale(0);
  animation: ripple-animation var(--ripple-duration) ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(var(--ripple-scale));
    opacity: 0;
  }
}

/* =========================================== */
/* MORPHING SHAPES */
/* Dynamic shape transformations */
/* =========================================== */

.morph-shape {
  position: relative;
  transition: border-radius var(--morph-duration) var(--morph-easing),
              transform var(--morph-duration) var(--morph-easing);
}

.morph-shape:hover {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  transform: scale(1.05) rotate(5deg);
}

.morph-shape.morph-circle:hover {
  border-radius: 50%;
  transform: scale(1.1);
}

.morph-shape.morph-square:hover {
  border-radius: 0;
  transform: scale(1.05) rotate(0deg);
}

/* Morphing button */
.btn-morph {
  position: relative;
  overflow: hidden;
  transition: all var(--morph-duration) var(--morph-easing);
}

.btn-morph::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-morph:hover::before {
  left: 100%;
}

.btn-morph:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* =========================================== */
/* PARTICLE EFFECTS */
/* Subtle particle animations on interaction */
/* =========================================== */

.particle-container {
  position: relative;
  overflow: visible;
}

.particle-container::after {
  content: '';
  position: absolute;
  width: var(--particle-size);
  height: var(--particle-size);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.particle-container:hover::after {
  animation: particle-burst var(--particle-duration) ease-out forwards;
}

@keyframes particle-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--particle-offset-x, 50px), var(--particle-offset-y, -50px)) scale(0);
  }
}

/* Multiple particles (JavaScript generated) */
.particle {
  position: absolute;
  width: var(--particle-size);
  height: var(--particle-size);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: particle-float var(--particle-duration) ease-out forwards;
}

@keyframes particle-float {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--particle-x, 0), var(--particle-y, -100px)) scale(0);
  }
}

/* =========================================== */
/* SPRING PHYSICS ANIMATIONS */
/* Natural, bouncy animations */
/* =========================================== */

.spring-animation {
  animation: spring-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes spring-bounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.spring-hover {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spring-hover:hover {
  transform: scale(1.05) translateY(-5px);
}

.spring-hover:active {
  transform: scale(0.95);
  transition: transform 0.1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================== */
/* GLOW PULSE EFFECTS */
/* Pulsing glow animations */
/* =========================================== */

.glow-pulse {
  position: relative;
}

.glow-pulse::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  animation: glow-pulse-animation 2s ease-in-out infinite;
}

@keyframes glow-pulse-animation {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.glow-pulse:hover::before {
  animation-duration: 1s;
}

/* =========================================== */
/* SHIMMER EFFECTS */
/* Shimmering shine animations */
/* =========================================== */

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer-slide 2s ease-in-out infinite;
}

@keyframes shimmer-slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.shimmer:hover::after {
  animation-duration: 1s;
}

/* =========================================== */
/* FLOATING ANIMATION */
/* Subtle floating motion */
/* =========================================== */

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

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

.float-animation-delayed {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* =========================================== */
/* MAGNETIC PULL EFFECT */
/* Elements that pull toward cursor */
/* =========================================== */

.magnetic-pull {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.magnetic-pull:hover {
  transform: scale(1.1);
}

/* =========================================== */
/* TEXT REVEAL ANIMATIONS */
/* Animated text reveals */
/* =========================================== */

.text-reveal {
  overflow: hidden;
  position: relative;
}

.text-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform: translateX(-100%);
  animation: text-reveal-slide 0.8s ease-out forwards;
}

@keyframes text-reveal-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* =========================================== */
/* LOADING SPINNER VARIATIONS */
/* Multiple spinner styles */
/* =========================================== */

.spinner-dots {
  display: inline-flex;
  gap: 4px;
}

.spinner-dots::before,
.spinner-dots::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: spinner-dots-bounce 1.4s ease-in-out infinite;
}

.spinner-dots::before {
  animation-delay: -0.32s;
}

.spinner-dots::after {
  animation-delay: -0.16s;
}

@keyframes spinner-dots-bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  :root {
    --ripple-scale: 2;
    --particle-count: 4;
  }
  
  .morph-shape:hover {
    transform: scale(1.02);
  }
  
  .spring-hover:hover {
    transform: scale(1.02) translateY(-2px);
  }
}

/* =========================================== */
/* ACCESSIBILITY */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .ripple-effect .ripple,
  .particle,
  .spring-animation,
  .glow-pulse::before,
  .shimmer::after,
  .float-animation,
  .text-reveal::before,
  .spinner-dots::before,
  .spinner-dots::after {
    animation: none !important;
  }
  
  .morph-shape,
  .btn-morph,
  .spring-hover,
  .magnetic-pull {
    transition: none !important;
  }
  
  .morph-shape:hover,
  .btn-morph:hover,
  .spring-hover:hover,
  .magnetic-pull:hover {
    transform: none !important;
  }
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */

.btn-ripple,
.card-ripple,
.interactive-ripple,
.morph-shape,
.btn-morph,
.particle-container,
.spring-hover,
.glow-pulse,
.shimmer {
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}


/* =========================================== */
/* 2. template/shared/css/micro-interactions-2-0-2026.css */
/* =========================================== */

/* =========================================== */
/* ADVANCED MICRO-INTERACTIONS 2.0 - 2026 */
/* Contextual, intelligent animations */
/* Award-winning UX/UI enhancement */
/* =========================================== */

/* ===== CONTEXTUAL HOVER EFFECTS ===== */

/* Smart button press feedback */
.btn,
.btn-premium {
  position: relative;
  overflow: hidden;
}

.btn::after,
.btn-premium::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  pointer-events: none;
  opacity: 0;
}

.btn:active::after,
.btn-premium:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

/* Context-aware form field focus */
.form-control,
.form-select {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2),
              0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Morphing border effect */
.form-control-wrapper {
  position: relative;
}

.form-control-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.form-control-wrapper:focus-within::before {
  opacity: 1;
  border-color: #667eea;
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% {
    border-color: #667eea;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% {
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  }
}

/* ===== GESTURE-BASED INTERACTIONS ===== */

/* Swipe hint indicator */
.swipeable {
  position: relative;
  overflow: hidden;
}

.swipeable::after {
  content: '← Swipe →';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.swipeable:hover::after {
  opacity: 1;
  animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
  0%, 100% {
    transform: translate(-50%, -50%) translateX(0);
  }
  50% {
    transform: translate(-50%, -50%) translateX(10px);
  }
}

/* Long-press context menu hint */
.long-pressable {
  position: relative;
}

.long-pressable::before {
  content: 'Long press for options';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.long-pressable:hover::before {
  opacity: 1;
}

/* ===== SCROLL-TRIGGERED REVEALS ===== */

.scroll-reveal-enhanced {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-enhanced.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for children */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal.revealed > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.stagger-reveal.revealed > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.stagger-reveal.revealed > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.stagger-reveal.revealed > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.stagger-reveal.revealed > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* ===== SUCCESS/ERROR STATE CELEBRATIONS ===== */

.success-celebration {
  position: relative;
  overflow: visible;
}

.success-celebration::before {
  content: '✓';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  z-index: 10;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.error-indication {
  position: relative;
}

.error-indication::before {
  content: '✗';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0) rotate(180deg);
  animation: errorShake 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  z-index: 10;
}

@keyframes errorShake {
  0% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
  25% {
    transform: scale(1.1) rotate(-10deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  75% {
    transform: scale(1.1) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* ===== LOADING STATE ANIMATIONS ===== */

.loading-state {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton loader for async content */
.skeleton-loader {
  background: linear-gradient(
    90deg,
    #f3f4f6 0%,
    #e5e7eb 50%,
    #f3f4f6 100%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

/* ===== CONTEXTUAL HOVER CARDS ===== */

.hover-card-preview {
  position: relative;
}

.hover-card-preview::after {
  content: attr(data-preview);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.hover-card-preview::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

.hover-card-preview:hover::after,
.hover-card-preview:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

.hover-card-preview:hover::before {
  transform: translateX(-50%) translateY(-2px);
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-enhanced,
  .stagger-reveal > *,
  .success-celebration::before,
  .error-indication::before,
  .loading-state::after,
  .skeleton-loader {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
  
  .scroll-reveal-enhanced {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .stagger-reveal.revealed > * {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
}







/* =========================================== */
/* 3. template/shared/css/mobile-gestures-2026.css */
/* =========================================== */

/* =========================================== */
/* MOBILE GESTURES 2026 */
/* Swipe, pull-to-refresh, pinch-to-zoom */
/* Award-winning mobile UX */
/* =========================================== */

:root {
  --gesture-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pull-refresh-threshold: 80px;
  --swipe-threshold: 50px;
}

/* =========================================== */
/* PULL-TO-REFRESH */
/* =========================================== */

.pull-to-refresh-container {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.pull-to-refresh-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: transform var(--gesture-transition), opacity var(--gesture-transition);
  z-index: 1000;
  pointer-events: none;
}

.pull-to-refresh-indicator.active {
  opacity: 1;
}

.pull-to-refresh-indicator.pulling {
  transform: translateX(-50%) translateY(20px);
}

.pull-to-refresh-indicator.releasing {
  transform: translateX(-50%) translateY(20px);
  animation: pull-to-refresh-spin 0.6s linear infinite;
}

.pull-to-refresh-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes pull-to-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================== */
/* SWIPEABLE CONTAINER */
/* =========================================== */

.swipeable-container {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.swipeable-item {
  position: relative;
  transition: transform var(--gesture-transition);
  will-change: transform;
  touch-action: pan-x;
}

.swipeable-item.swiping {
  transition: none;
}

.swipeable-item.swiped-left {
  transform: translateX(-100%);
}

.swipeable-item.swiped-right {
  transform: translateX(100%);
}

/* Swipe actions (like delete, archive) */
.swipe-action {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  color: white;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--gesture-transition);
  z-index: 1;
}

.swipe-action-left {
  left: 0;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.swipe-action-right {
  right: 0;
  background: linear-gradient(90deg, #10b981, #059669);
}

.swipeable-item.swiping .swipe-action {
  opacity: 1;
}

/* =========================================== */
/* PINCH-TO-ZOOM */
/* =========================================== */

.pinch-zoom-container {
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.pinch-zoom-container:active {
  cursor: grabbing;
}

.pinch-zoom-content {
  transform-origin: center center;
  transition: transform var(--gesture-transition);
  will-change: transform;
}

.pinch-zoom-content.zooming {
  transition: none;
}

/* Zoom limits */
.pinch-zoom-content {
  min-scale: 1;
  max-scale: 3;
}

/* =========================================== */
/* LONG-PRESS CONTEXT MENU */
/* =========================================== */

.long-pressable {
  position: relative;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.long-pressable.long-pressing {
  background: rgba(99, 102, 241, 0.1);
}

.long-press-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid #6366f1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--gesture-transition);
  z-index: 1000;
}

.long-press-indicator.active {
  opacity: 1;
  animation: long-press-pulse 1s ease-in-out infinite;
}

@keyframes long-press-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
}

/* =========================================== */
/* SWIPE NAVIGATION HINTS */
/* =========================================== */

.swipe-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--gesture-transition);
  z-index: 1000;
}

.swipe-hint.show {
  opacity: 1;
}

.swipe-hint-icon {
  animation: swipe-hint-bounce 1.5s ease-in-out infinite;
}

@keyframes swipe-hint-bounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

/* =========================================== */
/* HAPTIC FEEDBACK INDICATORS */
/* =========================================== */

.haptic-feedback {
  touch-action: manipulation;
}

/* =========================================== */
/* GESTURE OVERLAY */
/* =========================================== */

.gesture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--gesture-transition);
  z-index: 9999;
}

.gesture-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (min-width: 769px) {
  /* Disable gestures on desktop */
  .pull-to-refresh-container,
  .swipeable-container,
  .pinch-zoom-container,
  .long-pressable {
    touch-action: auto;
  }
  
  .pull-to-refresh-indicator,
  .swipe-hint {
    display: none;
  }
}

/* =========================================== */
/* REDUCED MOTION SUPPORT */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .swipeable-item,
  .pinch-zoom-content,
  .pull-to-refresh-indicator,
  .long-press-indicator {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */

.swipeable-item,
.pinch-zoom-content {
  backface-visibility: hidden;
  perspective: 1000px;
}






/* =========================================== */
/* 4. template/shared/css/enhanced-forms-2026.css */
/* =========================================== */

/* =========================================== */
/* ENHANCED FORMS 2026 */
/* Real-time validation, character counters, password strength */
/* Award-winning form UX */
/* =========================================== */

:root {
  --form-success-color: #10b981;
  --form-error-color: #ef4444;
  --form-warning-color: #f59e0b;
  --form-info-color: #3b82f6;
  --form-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================== */
/* FORM FIELD ENHANCEMENTS */
/* =========================================== */

.form-control-enhanced,
.form-control,
.form-select {
  position: relative;
  transition: all var(--form-transition);
}

/* =========================================== */
/* VALIDATION STATES */
/* =========================================== */

.form-control-enhanced.is-valid,
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--form-success-color);
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.98-.98-.98-.98-.98.98.98.98zm2.12-2.12.98-.98-.98-.98-.98.98.98.98zm2.12-2.12.98-.98-.98-.98-.98.98.98.98z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
}

.form-control-enhanced.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--form-error-color);
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
}

/* Validation icons */
.form-validation-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--form-transition);
  z-index: 5;
}

.form-control-enhanced.is-valid ~ .form-validation-icon.valid,
.form-control.is-valid ~ .form-validation-icon.valid,
.form-select.is-valid ~ .form-validation-icon.valid {
  opacity: 1;
  color: var(--form-success-color);
}

.form-control-enhanced.is-invalid ~ .form-validation-icon.invalid,
.form-control.is-invalid ~ .form-validation-icon.invalid,
.form-select.is-invalid ~ .form-validation-icon.invalid {
  opacity: 1;
  color: var(--form-error-color);
}

/* =========================================== */
/* CHARACTER COUNTERS */
/* =========================================== */

.form-char-counter {
  position: absolute;
  bottom: -1.25rem;
  right: 0;
  font-size: 0.75rem;
  color: #6b7280;
  opacity: 0;
  transition: opacity var(--form-transition);
  pointer-events: none;
}

.form-control-enhanced:focus ~ .form-char-counter,
.form-control:focus ~ .form-char-counter,
textarea:focus ~ .form-char-counter {
  opacity: 1;
}

.form-char-counter.warning {
  color: var(--form-warning-color);
}

.form-char-counter.danger {
  color: var(--form-error-color);
}

/* Character counter container */
.form-group-enhanced {
  position: relative;
  margin-bottom: 1.5rem;
}

/* =========================================== */
/* PASSWORD STRENGTH INDICATOR */
/* =========================================== */

.password-strength-meter {
  margin-top: 0.5rem;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--form-transition);
}

.password-strength-meter.active {
  opacity: 1;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: width var(--form-transition), background-color var(--form-transition);
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 33%;
  background-color: var(--form-error-color);
}

.password-strength-bar.fair {
  width: 66%;
  background-color: var(--form-warning-color);
}

.password-strength-bar.good {
  width: 100%;
  background-color: #3b82f6;
}

.password-strength-bar.strong {
  width: 100%;
  background-color: var(--form-success-color);
}

.password-strength-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  opacity: 0;
  transition: opacity var(--form-transition);
}

.password-strength-meter.active ~ .password-strength-text,
.password-strength-text.active {
  opacity: 1;
}

.password-strength-text.weak {
  color: var(--form-error-color);
}

.password-strength-text.fair {
  color: var(--form-warning-color);
}

.password-strength-text.good {
  color: #3b82f6;
}

.password-strength-text.strong {
  color: var(--form-success-color);
}

/* =========================================== */
/* FLOATING LABELS ENHANCEMENT */
/* =========================================== */

.form-floating-enhanced {
  position: relative;
}

.form-floating-enhanced label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity var(--form-transition), transform var(--form-transition);
  color: #6b7280;
}

.form-floating-enhanced .form-control:focus ~ label,
.form-floating-enhanced .form-control:not(:placeholder-shown) ~ label,
.form-floating-enhanced .form-select:focus ~ label,
.form-floating-enhanced .form-select:not([value=""]) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #6366f1;
}

/* =========================================== */
/* AUTO-SAVE INDICATOR */
/* =========================================== */

.form-autosave-indicator {
  position: absolute;
  top: -1.5rem;
  right: 0;
  font-size: 0.75rem;
  color: #6b7280;
  opacity: 0;
  transition: opacity var(--form-transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-autosave-indicator.active {
  opacity: 1;
}

.form-autosave-indicator.saving {
  color: var(--form-info-color);
}

.form-autosave-indicator.saved {
  color: var(--form-success-color);
}

.form-autosave-indicator.error {
  color: var(--form-error-color);
}

/* =========================================== */
/* REAL-TIME VALIDATION FEEDBACK */
/* =========================================== */

.form-feedback-real-time {
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity var(--form-transition), transform var(--form-transition);
  pointer-events: none;
}

.form-control-enhanced.is-valid ~ .form-feedback-real-time.valid,
.form-control.is-valid ~ .form-feedback-real-time.valid {
  opacity: 1;
  transform: translateY(0);
  color: var(--form-success-color);
}

.form-control-enhanced.is-invalid ~ .form-feedback-real-time.invalid,
.form-control.is-invalid ~ .form-feedback-real-time.invalid {
  opacity: 1;
  transform: translateY(0);
  color: var(--form-error-color);
}

/* =========================================== */
/* FOCUS ENHANCEMENTS */
/* =========================================== */

.form-control-enhanced:focus,
.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-control-enhanced:focus.is-valid,
.form-control:focus.is-valid {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control-enhanced:focus.is-invalid,
.form-control:focus.is-invalid {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* =========================================== */
/* LOADING STATE */
/* =========================================== */

.form-control-enhanced.loading,
.form-control.loading {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='10' stroke='%236366f1' stroke-width='2' fill='none' stroke-dasharray='31.416' stroke-dashoffset='31.416'%3e%3canimate attributeName='stroke-dasharray' dur='2s' values='0 31.416;15.708 15.708;0 31.416;0 31.416'/%3e%3canimate attributeName='stroke-dashoffset' dur='2s' values='0;-15.708;-31.416;-31.416'/%3e%3c/circle%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
  animation: form-loading-spin 1s linear infinite;
}

@keyframes form-loading-spin {
  to {
    background-position: right 0.75rem center;
  }
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  .form-char-counter,
  .form-feedback-real-time {
    font-size: 0.7rem;
  }
  
  .password-strength-text {
    font-size: 0.7rem;
  }
}

/* =========================================== */
/* REDUCED MOTION SUPPORT */
/* =========================================== */

@media (prefers-reduced-motion: reduce) {
  .form-control-enhanced,
  .form-control,
  .form-select,
  .form-validation-icon,
  .form-char-counter,
  .form-feedback-real-time,
  .password-strength-bar,
  .password-strength-text,
  .form-autosave-indicator {
    transition: opacity 0.2s ease !important;
  }
  
  .form-control-enhanced.loading,
  .form-control.loading {
    animation: none !important;
  }
}






