/* Custom styles for Quantum Spark Bot */

/* Loading animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}

/* Focus styles */
button:focus,
input:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Button effects */
.btn-glow {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

/* Status indicators */
.status-active {
  position: relative;
}

.status-active::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-full {
    width: 100% !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
}

/* Dark theme optimizations */
.dark-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark-input {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.5);
}

.dark-input:focus {
  background: rgba(31, 41, 55, 1);
  border-color: #7c3aed;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* PWA specific styles */
@media (display-mode: standalone) {
  /* Styles for when app is installed as PWA */
  .pwa-header {
    padding-top: env(safe-area-inset-top);
  }
  
  .pwa-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Chart container styles */
.chart-container {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 8px;
  padding: 20px;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Notification styles */
.notification {
  backdrop-filter: blur(10px);
  background: rgba(31, 41, 55, 0.95);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Success/Error states */
.success-border {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px #10b981;
}

.error-border {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}