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

:root {
  --primary-gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --sidebar-dark: #0c1322;
  --card-dark: #11192e;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-brand {
  font-family: 'Cinzel', serif;
}

/* Subtle Starfield & Noise Background */
.cosmic-bg-overlay {
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.07) 0%, transparent 45%);
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}

/* Sidebar Nav Active Pill (Matches Reference Image) */
.active-nav-pill {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.04));
  border-left: 3px solid #f59e0b;
  color: #fbbf24 !important;
  font-weight: 700;
  box-shadow: inset 0 0 16px rgba(245, 158, 11, 0.12);
}

.nav-item:hover .icon-box {
  transform: scale(1.18) rotate(4deg);
}
.icon-box {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Luxury 3D Spotlight Tilt Cards */
.tilt-card-3d {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease-out;
}

.tilt-card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tilt-card-3d:hover::after {
  opacity: 1;
}

.tilt-card-3d:hover {
  box-shadow: 0 20px 40px -10px rgba(12, 19, 34, 0.16), 0 0 25px rgba(245, 158, 11, 0.14);
}

/* Micro-Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseHalo {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

.pulse-halo {
  animation: pulseHalo 4s infinite ease-in-out;
}

/* Print Styles for Complete Dossier */
@media print {
  aside, header, #sound-toggle-btn, .no-print {
    display: none !important;
  }
  body, main {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #printable-report-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
