/* ==========================================================================
   OBSIDIAN AEROSPACE DESIGN SYSTEM — ArvanCloud Blackout Command Center
   ========================================================================== */

:root {
  --bg-obsidian: #06080D;
  --bg-panel: rgba(13, 18, 28, 0.72);
  --bg-panel-elevated: rgba(18, 25, 38, 0.86);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.28);
  --cyan: #00F0FF;
  --emerald: #10B981;
  --amber: #F59E0B;
  --crimson: #F43F5E;
  --titanium: #94A3B8;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 38%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #E2E8F0;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono, code, pre, .tabular {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* Frosted Glass Aerospace Panels */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.glass-card-interactive:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 240, 255, 0.07);
}

.titanium-pill {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(30, 41, 59, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bioluminescent Buttons */
.btn-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 180, 216, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #00F0FF;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cyan:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(0, 180, 216, 0.22));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  transition: all 0.2s ease;
}
.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.2);
}

.btn-crimson {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #FB7185;
  transition: all 0.2s ease;
}
.btn-crimson:hover {
  background: rgba(244, 63, 94, 0.26);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #CBD5E1;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Inputs */
.aero-input {
  background: rgba(6, 8, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #F1F5F9;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.aero-input:focus {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

/* Status Indicators */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: inherit;
  opacity: 0.35;
  animation: aero-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes aero-ping {
  75%, 100% { transform: scale(2.1); opacity: 0; }
}

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

.animate-enter {
  animation: fadeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 8, 13, 0.9);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

.rtl-box {
  direction: rtl;
  text-align: right;
}
