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

:root {
  --bg-primary: #080c16;
  --bg-secondary: #0d1527;
  --card-bg: rgba(15, 23, 42, 0.82);
  --card-border: rgba(148, 163, 184, 0.14);
  --card-hover-border: rgba(56, 189, 248, 0.35);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
}

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: rtl;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(30, 58, 138, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #0a0f1d 0%, #060913 100%);
  background-attachment: fixed;
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

.font-mono-tech {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.03em;
}

/* ==================== ELEGANT CARDS & SURFACES ==================== */
.bg-slate-900,
.bg-slate-900\/80,
.bg-slate-900\/90,
.bg-slate-900\/60 {
  background-color: var(--card-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--card-border) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.border-slate-800,
.border-slate-700 {
  border-color: var(--card-border) !important;
}

/* Subtle Card Hover */
.tab-content-panel > div,
.hover\:border-cyan-400:hover,
.hover\:border-cyan-500\/50:hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== EXECUTIVE NAVIGATION TABS ==================== */
nav {
  background: rgba(13, 21, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  margin-bottom: 1.5rem;
}

.nav-tab-btn {
  color: var(--text-muted) !important;
  border: 1px solid transparent !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: all 0.2s ease-in-out !important;
}

.nav-tab-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-tab-btn.bg-cyan-500\/20,
.nav-tab-btn[data-active="true"] {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.22)) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.18);
}

/* ==================== PRIMARY & EXECUTIVE BUTTONS ==================== */
button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

button:active {
  transform: scale(0.98);
}

/* Primary Cyan-Blue Gradient */
.bg-gradient-to-r.from-cyan-500.to-blue-600 {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bg-gradient-to-r.from-cyan-500.to-blue-600:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Top Command Bar */
header {
  background: rgba(10, 15, 29, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Breaking news ticker */
#breaking-news-ticker {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Custom dark scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #080c16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Range sliders (clean, modern styling) */
input[type="range"] {
  -webkit-appearance: none;
  background: #1e293b;
  height: 6px;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  border: 2px solid #0f172a;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Ticker marquee animation */
@keyframes ticker {
  0% { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.animate-ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.animate-ticker:hover {
  animation-play-state: paused;
}

/* Radar pulse animation */
@keyframes radar-pulse {
  0% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 0.25; }
  100% { transform: scale(0.96); opacity: 0.7; }
}

.radar-ping {
  animation: radar-pulse 3.5s infinite ease-in-out;
}

/* Modal styling */
.fixed.inset-0 {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==================== CINEMATIC PROLOGUE STYLING ==================== */
.cinematic-scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.3)
  );
  background-size: 100% 4px;
  pointer-events: none;
}

.cinematic-vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.cinematic-card-glow {
  box-shadow: 0 0 50px -10px rgba(6, 182, 212, 0.15), inset 0 0 20px rgba(6, 182, 212, 0.05);
}

@keyframes flashStrobe {
  0% { opacity: 0; }
  10% { opacity: 0.9; }
  20% { opacity: 0.1; }
  35% { opacity: 0.8; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.animate-flash-strobe {
  animation: flashStrobe 2.8s infinite ease-in-out;
}

@keyframes targetPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

.animate-target-pulse {
  animation: targetPulse 2s infinite ease-in-out;
}

.typing-cursor::after {
  content: '▋';
  color: #38bdf8;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
