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

:root {
  --brand-navy: #1B365D;
  --brand-navy-dark: #0d1e35;
  --brand-green: #1E3A2F;
  --brand-green-dark: #12241d;
  --brand-gold: #D4AF37;
  --brand-gold-light: #FBF4DD;
  --brand-cream: #FAF9F6;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--brand-cream);
  color: #1E293B;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background animated canvas */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Modern Pill Navigation Tabs (Clean, Sleek, NO Stacking Bugs, NO Clipping!) */
.nav-tab-btn {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-tab-btn.active-tab {
  background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
  color: #0F172A !important;
  box-shadow: 0 4px 14px -2px rgba(212, 175, 55, 0.45);
  font-weight: 900;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-tab-btn:not(.active-tab) {
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-tab-btn:not(.active-tab):hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Modal Pop Animation */
@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-pop {
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Hover Elevation & Glow */
.card-pro {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.card-pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 35px -10px rgba(15, 23, 42, 0.14), 0 10px 14px -4px rgba(15, 23, 42, 0.08);
}

/* Officer Card Cool Hover Effect */
.officer-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.officer-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 40px -12px rgba(16, 185, 129, 0.25), 0 0 0 1.5px rgba(16, 185, 129, 0.4);
}

/* Avatar Photo Frame */
.avatar-frame {
  position: relative;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 4px solid #FFFFFF;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.officer-card:hover .avatar-frame {
  transform: scale(1.06);
  border-color: #10B981;
}

/* Pulse Glow for Live Status */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}
.pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Shimmer Animation */
@keyframes shimmerGlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-badge {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.4) 50%, rgba(212, 175, 55, 0.12) 100%);
  background-size: 200% 100%;
  animation: shimmerGlow 4s infinite linear;
}

/* Floating Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
.floating-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

/* Watermark Styling at Bottom-Left */
#watermark-fakrul {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#watermark-fakrul:hover {
  transform: scale(1.08) translateY(-2px);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Print Optimization */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 15px;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print, #network-canvas, #watermark-fakrul, .fixed {
    display: none !important;
  }
}

/* Tab Sections Absolute Visibility Control */
.tab-section.hidden {
  display: none !important;
}
.tab-section:not(.hidden) {
  display: block !important;
}
