@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --cyber-dark: #070a10;
  --cyber-surface: #0f172a;
  --cyber-red: #ff2a51;
  --cyber-red-glow: rgba(255, 42, 81, 0.45);
  --cyber-cyan: #00f0ff;
  --cyber-cyan-glow: rgba(0, 240, 255, 0.35);
  --cyber-green: #10b981;
}

* {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--cyber-dark);
  color: #f1f5f9;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Glassmorphism Cyber Card */
.cyber-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

.cyber-card-active {
  border-color: rgba(255, 42, 81, 0.4);
  box-shadow: 0 0 25px rgba(255, 42, 81, 0.2), inset 0 0 15px rgba(255, 42, 81, 0.05);
}

/* Primary SOS Button Styles */
.sos-button {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff4b6e, #dc2626 50%, #991b1b 100%);
  box-shadow: 0 0 35px var(--cyber-red-glow), 0 0 80px rgba(220, 38, 38, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.sos-button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 45px var(--cyber-red-glow), 0 0 100px rgba(220, 38, 38, 0.4);
}

.sos-button:active {
  transform: scale(0.96);
  box-shadow: 0 0 25px var(--cyber-red-glow);
}

/* Outer Pulsing Waves for SOS Button */
.sos-pulse-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 2px solid var(--cyber-red);
  opacity: 0;
  animation: sos-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

.sos-pulse-ring-delayed {
  animation-delay: 1.1s;
}

@keyframes sos-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Cyber Scanning Line */
.cyber-grid {
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Neon Glow Texts */
.text-glow-red {
  text-shadow: 0 0 12px rgba(255, 42, 81, 0.7);
}

.text-glow-cyan {
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-online {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

/* Pulsing dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #070a10;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
