@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Chakra+Petch:wght@500;600;700&display=swap');

:root {
  --primary-navy: #0f172a;
  --rescue-blue: #1e40af;
  --rescue-red: #dc2626;
  --rescue-amber: #d97706;
  --rescue-green: #16a34a;
}

body {
  font-family: 'Prompt', sans-serif;
  background-color: #0b1329;
  color: #f1f5f9;
  min-height: 100vh;
}

.font-tech {
  font-family: 'Chakra Petch', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(71, 85, 105, 0.3);
  transition: all 0.2s ease-in-out;
}

.glass-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 8px 24px -4px rgba(30, 64, 175, 0.2);
}

/* ICS Organization Tree Styles */
.ics-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 20px 0;
}

.ics-level {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.ics-node {
  background: #1e293b;
  border-radius: 8px;
  border: 2px solid #3b82f6;
  padding: 12px 16px;
  min-width: 190px;
  max-width: 240px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.2s ease;
}

.ics-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.ics-node.ic {
  border-color: #ef4444;
  background: linear-gradient(145deg, #1e1b4b, #31102f);
}

.ics-node.command-staff {
  border-color: #f59e0b;
  background: #1e293b;
}

.ics-node.general-staff {
  border-color: #3b82f6;
  background: #0f172a;
}

.ics-node.unit {
  border-color: #10b981;
  background: #1e293b;
}

/* Print Stylesheet for ICS 201 Briefing / Personnel Report */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print, header, aside, #nav-sidebar, #toast-container, button {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .glass-panel, .glass-card, .ics-node {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
  .text-white {
    color: #111 !important;
  }
  .text-slate-400, .text-slate-300 {
    color: #444 !important;
  }
}
