/**
 * Kinetic FX & Dynamic Vibrance Stylesheet
 * Project Codex - High-Impact Motion & Micro-interactions
 */

/* Kinetic Floating Gradient Keyframes */
@keyframes kineticGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes kineticPulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.75), 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}

@keyframes kineticDangerGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.85);
  }
}

@keyframes kineticMoneyPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.85);
  }
}

/* Dynamic Buttons Enhancement */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  transform-origin: center center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed, #2563eb) !important;
  background-size: 300% 300% !important;
  animation: kineticGradientFlow 6s ease infinite !important;
  border: none !important;
  color: #ffffff !important;
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981, #047857, #059669) !important;
  background-size: 300% 300% !important;
  animation: kineticGradientFlow 6s ease infinite !important;
  border: none !important;
  color: #ffffff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444, #b91c1c, #dc2626) !important;
  background-size: 300% 300% !important;
  border: none !important;
  color: #ffffff !important;
}

/* Shockwave Ripple Effect Element */
.kinetic-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 75%);
  transform: translate(-50%, -50%) scale(0);
  z-index: 10;
}

/* KPI Card 3D Perspective Context */
.kpi-grid {
  perspective: 1000px;
}

.kpi-card {
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
  transition: border-color 0.2s ease;
}

.kpi-card .kpi-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* Icon Animation Containers */
.btn span, .btn emoji, .nav-item .nav-icon {
  display: inline-block;
  will-change: transform;
  transform-origin: center center;
}

/* Active Nav Indicator Glow */
.nav-item.active {
  box-shadow: inset 4px 0 0 #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

.nav-item {
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
