:root {
  --color-primary: #FF6B00;
  --color-primary-glow: rgba(255, 107, 0, 0.45);
  --color-primary-hover: #FF8533;
  --color-bg-deep: #090A0F;
  --color-card-bg: rgba(18, 20, 29, 0.75);
  --color-card-border: rgba(255, 107, 0, 0.18);
  --color-card-hover-border: rgba(255, 107, 0, 0.5);
  --color-text-main: #F3F4F6;
  --color-text-muted: #9CA3AF;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 60, 0, 0.06) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Glassmorphism Industrial Card */
.cyber-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-card:hover {
  border-color: var(--color-card-hover-border);
  box-shadow: 0 10px 36px 0 rgba(255, 107, 0, 0.12);
}

/* Fiery Orange Glow Effects */
.glow-orange {
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.glow-orange-text {
  text-shadow: 0 0 12px var(--color-primary-glow);
}

.glow-orange-sm {
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8800 100%);
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF7D1A 0%, #FFA033 100%);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.65);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.btn-danger:hover {
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
  transform: translateY(-1px);
}

/* Cyber Terminal Container */
.cyber-terminal {
  background: #05060A;
  border: 1px solid rgba(255, 107, 0, 0.25);
  font-family: var(--font-mono);
  color: #D1D5DB;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 12, 18, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

/* Pulse animation for live indicators */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.95);
    opacity: 0.85;
  }
}

@keyframes pulseOrange {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.6);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.95);
    opacity: 0.8;
  }
}

.badge-live-pulse {
  animation: pulseGlow 2s infinite ease-in-out;
}

.badge-reconnect-pulse {
  animation: pulseOrange 1.2s infinite ease-in-out;
}

/* Progress bar cyber styling */
.cyber-progress-bg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cyber-progress-fill {
  background: linear-gradient(90deg, #FF6B00, #FFA500);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  transition: width 0.4s ease;
}

/* Toast container with mobile responsiveness */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

@media (max-width: 640px) {
  #toast-container {
    bottom: 14px;
    right: 12px;
    left: 12px;
    max-width: 100%;
  }
}

.toast {
  backdrop-filter: blur(16px);
  background: rgba(18, 20, 28, 0.95);
  border-left: 4px solid #FF6B00;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Range input styling */
input[type=range] {
  accent-color: #FF6B00;
}

/* Hide scrollbar for clean horizontal tab swipe on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
  .cyber-card {
    padding: 1rem !important;
  }
  
  /* Smooth touch scrolling for tables and tabs */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent awkward iOS text zoom */
  input, select, textarea {
    font-size: 14px !important;
  }
}

