/* ==========================================================================
   AERION VISION - LUXURY OBSIDIAN & CHROME DESIGN SYSTEM
   Ultra High-End Gaming Aesthetics, Frosted Glass, Ambient Glow & Micro-Interactions
   ========================================================================== */

:root {
  --primary: #ffffff;
  --primary-rgb: 255, 255, 255;
  --secondary: #94a3b8;
  --accent: #38bdf8;
  --bg-deep: #050608;
  --bg-card: rgba(13, 16, 23, 0.85);
  --bg-surface: rgba(22, 27, 38, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --chrome-start: #ffffff;
  --chrome-mid: #cbd5e1;
  --chrome-end: #64748b;
  --glow-color: rgba(255, 255, 255, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: #e2e8f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  selection-background-color: #ffffff;
  selection-color: #000000;
}

/* Ambient Radial Glow Background */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(56, 189, 248, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #060709;
}
::-webkit-scrollbar-thumb {
  background: #1e2533;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography */
.font-heading {
  font-family: 'Orbitron', 'Rajdhani', -apple-system, sans-serif;
  letter-spacing: 0.06em;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Chrome / Metallic Text Gradient */
.chrome-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #94a3b8 80%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chrome-subtle-text {
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Obsidian Glass Panels */
.black-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.black-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-interactive {
  background: rgba(15, 19, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card-interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 28, 40, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Circular Launch Gauge (High Quality Glowing Track) */
.gauge-svg-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
}

.gauge-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 10;
}

.gauge-circle-progress {
  fill: none;
  stroke: url(#gaugeChromeGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 628.3;
  stroke-dashoffset: 628.3;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Modern Status Pills */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-open {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.status-open::before { background: #94a3b8; }

.status-seen {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.status-seen::before { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }

.status-in_progress {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-in_progress::before {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: pulseDot 1.5s infinite ease-in-out;
}

.status-under_review {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.status-under_review::before { background: #c084fc; box-shadow: 0 0 6px #c084fc; }

.status-resolved, .status-completed, .status-approved {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-resolved::before, .status-completed::before, .status-approved::before {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.status-closed, .status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.status-closed::before, .status-rejected::before { background: #f87171; }

.status-declined {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
  text-decoration: line-through;
}
.status-declined::before { background: #64748b; }

/* Category Badges */
.badge-cat {
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Priority Tags */
.priority-critical {
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
  font-weight: bold;
}
.priority-high {
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}
.priority-medium {
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.priority-low {
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* Modal Overlay */
.modal-overlay {
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-content-card {
  background: #0b0d13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 255, 255, 0.03);
}

/* Navigation active tab */
.nav-tab-active {
  color: #050608 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Form Controls */
input, select, textarea {
  background: #090b10 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
  outline: none !important;
}

/* Pulse animation */
@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.pulse-dot {
  animation: pulseDot 2s infinite ease-in-out;
}

/* Modern Empty State Box */
.empty-state-box {
  display: flex;
  flex-col: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(12, 15, 21, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
  grid-column: 1 / -1;
  transition: border-color 0.2s ease;
}

.empty-state-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Modern Toast Notifications */
#toastContainer {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 3rem);
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.75rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.toast-leave {
  opacity: 0;
  transform: translateX(30px);
}

.toast-item.toast-success {
  border-left: 3px solid #10b981;
}

.toast-item.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-item.toast-info {
  border-left: 3px solid #38bdf8;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Custom Range Input */
input[type="range"] {
  -webkit-appearance: none;
  background: #121620 !important;
  border: none !important;
  box-shadow: none !important;
  height: 6px;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: transform 0.1s ease;
}

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

/* Custom Checkbox */
input[type="checkbox"] {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background-color: #0b0d13 !important;
  border-radius: 4px !important;
  accent-color: #10b981;
}

/* Portal transitions */
.portal-subview {
  animation: fadeIn 0.25s ease forwards;
}

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

/* ==========================================================================
   PORTAL NAVIGATION BAR STYLING
   High-precision obsidian pill tabs with clean glass highlight states
   ========================================================================== */

.portal-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 0.6rem !important;
  font-size: 0.75rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.15s ease-in-out !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  line-height: 1rem !important;
}

.portal-nav-btn i {
  font-size: 0.75rem !important;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.portal-nav-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.portal-nav-btn:hover i {
  opacity: 1;
}

.portal-nav-btn.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  font-weight: 600 !important;
}

.portal-nav-btn.active i {
  color: #ffffff !important;
  opacity: 1 !important;
}

.portal-mobile-nav-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.8rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.15s ease-in-out !important;
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
}

.portal-mobile-nav-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.portal-mobile-nav-btn.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  font-weight: 600 !important;
}

