/* VisaConnect Africa — Custom Styles */

/* Smooth page transitions */
#app {
  min-height: 100vh;
}

/* Animated gradient background for hero */
/* NOTE: background-image from .pattern-overlay was overriding the gradient.
   Fix: embed the pattern directly here as a stacked background so both render. */
.hero-gradient {
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/auto,
    linear-gradient(135deg, #0D9488 0%, #0f766e 40%, #115e59 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Subtle pattern overlay — now a no-op; pattern is embedded in .hero-gradient above */
.pattern-overlay {}

/* Card hover effect */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Step connector line */
.step-connector {
  position: absolute;
  left: 1.25rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #0D9488, #ccfbf1);
}

/* Mobile bottom nav */
.bottom-nav {
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Form input focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Animated loading spinner */
.spinner {
  border: 3px solid #e5e7eb;
  border-top-color: #0D9488;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.6s linear infinite;
}

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

/* Badge pulse */
.badge-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Toast notification */
.toast {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
