/* ==============================================================================
   AGÊNCIA NINJA — DESIGN SYSTEM CYBER-AURORA & THEME TOKENS
   Identidade: Fundo Espacial Obsidian, Ciano Neon, Púrpura Aurora & Aço Cromado
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Paleta Base Obsidian & Superfícies */
  --bg-deep: #05070a;
  --bg-surface: #0b0f17;
  --bg-card: rgba(14, 20, 31, 0.72);
  --bg-card-hover: rgba(19, 27, 43, 0.85);
  --bg-input: rgba(8, 12, 20, 0.8);
  
  /* Gradientes Aurora Boreal & Neon */
  --neon-cyan: #00f5d4;
  --neon-cyan-soft: #00d2ff;
  --neon-cyan-glow: rgba(0, 245, 212, 0.28);
  --neon-purple: #9d4edd;
  --neon-purple-soft: #c77dff;
  --neon-purple-glow: rgba(157, 78, 221, 0.28);
  
  --grad-aurora: linear-gradient(135deg, #00f5d4 0%, #00b4d8 50%, #9d4edd 100%);
  --grad-aurora-hover: linear-gradient(135deg, #26f8dd 0%, #22c5eb 50%, #b26bf0 100%);
  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #cbd5e1 55%, #64748b 100%);
  --grad-card-border: linear-gradient(135deg, rgba(0, 245, 212, 0.3) 0%, rgba(157, 78, 221, 0.25) 50%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Cores Semânticas */
  --color-success: #10b981;
  --color-success-glow: rgba(16, 185, 129, 0.25);
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.25);
  --color-info: #0284c7;

  /* Tipografia & Textos */
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;
  
  /* Bordas e Efeitos Glass */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(0, 245, 212, 0.35);
  --glass-blur: blur(16px);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 15px 0 rgba(0, 245, 212, 0.05);
  --shadow-neon-cyan: 0 0 20px rgba(0, 245, 212, 0.35);
  --shadow-neon-purple: 0 0 20px rgba(157, 78, 221, 0.35);

  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fundo cósmico com brilho de Aurora Boreal */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -100px, rgba(0, 245, 212, 0.14) 0%, rgba(157, 78, 221, 0.1) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 100% 100%, rgba(157, 78, 221, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Barra de rolagem estilizada Cyber */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 7, 10, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* Tipografia Estilizada */
h1, h2, h3, .font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-chrome {
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.ninja-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.ninja-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.3), rgba(157, 78, 221, 0.3), transparent);
}

.ninja-card:hover {
  border-color: rgba(0, 245, 212, 0.25);
}

/* Botões com Estilo Ninja */
.btn-ninja {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--grad-aurora);
  color: #05070a;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ninja:hover {
  background: var(--grad-aurora-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 245, 212, 0.4);
}

.btn-ninja:active {
  transform: translateY(0);
}

.btn-ninja-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(14, 20, 31, 0.6);
  color: var(--text-main);
  backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-ninja-outline:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.08);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
}

.btn-ninja-purple {
  background: linear-gradient(135deg, #9d4edd 0%, #7928ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-ninja-purple:hover {
  background: linear-gradient(135deg, #b065f0 0%, #8b34e0 100%);
  box-shadow: 0 6px 22px rgba(157, 78, 221, 0.45);
}

/* Indicador de Status Pulsante */
.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: relative;
}

.pulse-dot.online {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.pulse-dot.online::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--neon-cyan);
  animation: pulse 2s infinite;
}

.pulse-dot.busy {
  background-color: var(--color-warning);
  box-shadow: 0 0 10px var(--color-warning);
}

.pulse-dot.offline {
  background-color: var(--color-danger);
  box-shadow: 0 0 10px var(--color-danger);
}

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

/* Badges e Tags */
.ninja-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-cyan {
  background: rgba(0, 245, 212, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 212, 0.25);
}

.badge-purple {
  background: rgba(157, 78, 221, 0.15);
  color: var(--neon-purple-soft);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
