/* Custom styles for BizPilot AI */

/* Glassmorphism card class override for premium aesthetic */
.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card-hover:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background animated grid overlay */
.animated-grid {
  background-size: 45px 45px;
  background-image: linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
}

/* Hero Glow radial circles */
.hero-glow {
  position: absolute;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Equalizer animations for AI Voice Agent */
.equalizer-bar {
  display: inline-block;
  width: 4px;
  height: 15px;
  background-color: #b4c5ff;
  margin: 0 2px;
  border-radius: 2px;
}

@keyframes eq-dance {
  0%, 100% { height: 10px; }
  50% { height: 35px; }
}

.eq-active-bar:nth-child(1) { animation: eq-dance 0.8s ease-in-out infinite; }
.eq-active-bar:nth-child(2) { animation: eq-dance 1.1s ease-in-out infinite 0.1s; }
.eq-active-bar:nth-child(3) { animation: eq-dance 0.9s ease-in-out infinite 0.3s; }
.eq-active-bar:nth-child(4) { animation: eq-dance 1.3s ease-in-out infinite 0.2s; }
.eq-active-bar:nth-child(5) { animation: eq-dance 0.7s ease-in-out infinite 0.4s; }
.eq-active-bar:nth-child(6) { animation: eq-dance 1.2s ease-in-out infinite 0.15s; }
.eq-active-bar:nth-child(7) { animation: eq-dance 0.9s ease-in-out infinite 0.25s; }

/* Custom scrollbars for clean UI appearance */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(12, 17, 46, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* Animations and keyframes */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.custom-pulse {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Animated radar scan for voice assistant */
@keyframes radar-scan {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.radar-sweep {
  transform-origin: center;
  animation: radar-scan 6s linear infinite;
}

/* Page fade transition */
.view-transition {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  display: none !important;
}

/* Input elements inside dark/glass container */
.glass-input {
  background: rgba(12, 17, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dee0ff;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s;
}

.glass-input:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  background: rgba(12, 17, 46, 0.6);
}

/* Custom switch / toggle styles */
.toggle-checkbox:checked {
  right: 0;
  border-color: #2563eb;
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #2563eb;
}

/* Active Nav Links in Dashboard */
.sidebar-link-active {
  background: rgba(37, 99, 235, 0.15);
  border-left: 3px solid #2563eb;
  color: #ffffff;
}
