/* site.css - Global stylesheet for at‑age‑s‑end site */

/* Removed Outfit font import */

/* CSS Custom Properties - Premium Dark Theme */
:root {
  --color-primary-start: #f97316; /* orange-500 */
  --color-primary-end: #ef4444;   /* red-500 */
  --color-accent: #0ea5e9;       /* sky-500 */
  --color-bg-dark: #020617;      /* slate-950 */
  --color-bg-light: #0f172a;     /* slate-900 */
  --color-text-light: #f8fafc;   /* slate-50 */
  --color-text-muted: #94a3b8;   /* slate-400 */
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --spacing-unit: 0.5rem;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100vh; overflow: hidden; font-family: var(--font-family-base); background: var(--color-bg-dark); color: var(--color-text-light); }
body { display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 60px 1fr; }

/* Utility Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: calc(var(--spacing-unit) * 2); }
.text-center { text-align: center; }

/* Header & Logo */
.site-header {
  grid-column: 1 / -1;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 calc(var(--spacing-unit) * 6);
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { 
  font-size: 2.2rem; 
  font-weight: 900; 
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #d97706, #ef4444, #8b5cf6, #06b6d4); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  font-style: italic;
  white-space: nowrap;
}

/* Navigation Pane */
.site-nav {
  grid-column: 1 / 2;
  width: 100%;
  background: var(--color-bg-dark);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--spacing-unit) * 4);
  overflow-y: auto;
}
.site-nav .nav-section-header {
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  color: var(--color-accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: calc(0.75rem * 1.15);
  letter-spacing: 0.15em;
  margin-top: calc(var(--spacing-unit) * 4);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.site-nav .nav-item {
  padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 4);
  color: var(--color-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  font-weight: 600;
  font-size: calc(0.9rem * 1.15);
}
.site-nav .nav-item:hover, .site-nav .nav-item.active {
  background: linear-gradient(to right, rgba(14, 165, 233, 0.1), transparent);
  color: var(--color-text-light);
  border-left-color: var(--color-accent);
  padding-left: calc(var(--spacing-unit) * 5);
}
.site-nav .nav-item .nav-icon { font-size: calc(1.25rem * 1.15); width: 24px; text-align: center; }

/* Enhanced Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(249, 115, 22, 0.3);
}

.content-tag {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: calc(0.7rem * 1.15);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main Content Area */
.site-main {
  grid-column: 2 / 3;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow-y: auto;
  position: relative;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
  color: var(--color-text-light);
  border: none;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

/* Gradient Title */
.gradient-title {
  background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Card Grid (e.g., BIS, zone cards) */
.grid-3 {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay img.modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 640px) {
  .site-nav { width: 60px; }
  .site-nav .nav-label { display: none; }
}

/* AA Node Styles */
.aa-node-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 44px;
  height: 56px;
}
.aa-circle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 2px solid #475569;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: calc(9px * 1.15);
  transition: all 0.2s;
  user-select: none;
}
.aa-circle:hover {
  border-color: #94a3b8;
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}
.aa-circle.partial {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}
.aa-circle.maxed {
  border-color: #eab308;
  background-color: rgba(234, 179, 8, 0.2);
  color: #fde047;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}
.aa-circle.locked {
  opacity: 0.3;
  cursor: not-allowed;
}

#tooltip {
  position: fixed;
  z-index: 9999;
  background-color: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 12px;
  width: 280px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  pointer-events: none;
  display: none;
  transform: translate(-50%, -110%);
}



/* Pulsing red notification badge for active requisitions */
.prof-req-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.5s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* --- GLOBAL FONT SIZE UPGRADE (15% for non-headings) --- */
body {
  font-size: calc(1rem * 1.15);
}

/* Override Tailwind font-size utilities by 15% globally */
.text-[7.5px], .text-\[7\.5px\] { font-size: calc(7.5px * 1.15) !important; }
.text-[8px], .text-\[8px\] { font-size: calc(8px * 1.15) !important; }
.text-[9px], .text-\[9px\] { font-size: calc(9px * 1.15) !important; }
.text-[10px], .text-\[10px\] { font-size: calc(10px * 1.15) !important; }
.text-[11px], .text-\[11px\] { font-size: calc(11px * 1.15) !important; }
.text-xs { font-size: calc(0.75rem * 1.15) !important; }
.text-sm { font-size: calc(0.875rem * 1.15) !important; }
.text-base { font-size: calc(1rem * 1.15) !important; }
.text-lg { font-size: calc(1.125rem * 1.15) !important; }
.text-xl { font-size: calc(1.25rem * 1.15) !important; }
.text-2xl { font-size: calc(1.5rem * 1.15) !important; }
.text-3xl { font-size: calc(1.875rem * 1.15) !important; }
.text-4xl { font-size: calc(2.25rem * 1.15) !important; }
.text-5xl { font-size: calc(3rem * 1.15) !important; }

/* Cancel scale up for section and subsection titles (h1-h6 headings and explicit titles) */
h1.text-xs, h2.text-xs, h3.text-xs, h4.text-xs, h5.text-xs, h6.text-xs { font-size: 0.75rem !important; }
h1.text-sm, h2.text-sm, h3.text-sm, h4.text-sm, h5.text-sm, h6.text-sm { font-size: 0.875rem !important; }
h1.text-base, h2.text-base, h3.text-base, h4.text-base, h5.text-base, h6.text-base { font-size: 1rem !important; }
h1.text-lg, h2.text-lg, h3.text-lg, h4.text-lg, h5.text-lg, h6.text-lg { font-size: 1.125rem !important; }
h1.text-xl, h2.text-xl, h3.text-xl, h4.text-xl, h5.text-xl, h6.text-xl { font-size: 1.25rem !important; }
h1.text-2xl, h2.text-2xl, h3.text-2xl, h4.text-2xl, h5.text-2xl, h6.text-2xl { font-size: 1.5rem !important; }
h1.text-3xl, h2.text-3xl, h3.text-3xl, h4.text-3xl, h5.text-3xl, h6.text-3xl { font-size: 1.875rem !important; }
h1.text-4xl, h2.text-4xl, h3.text-4xl, h4.text-4xl, h5.text-4xl, h6.text-4xl { font-size: 2.25rem !important; }
h1.text-5xl, h2.text-5xl, h3.text-5xl, h4.text-5xl, h5.text-5xl, h6.text-5xl { font-size: 3rem !important; }

/* Keep logo and section category subheaders at original sizes */
.logo { font-size: 2.2rem !important; }
.site-nav .nav-section-header { font-size: 0.75rem !important; }

/* Non-tailwind default browser headings override to prevent scaling from body inherit */
h1:not([class*="text-"]) { font-size: 2rem !important; }
h2:not([class*="text-"]) { font-size: 1.5rem !important; }
h3:not([class*="text-"]) { font-size: 1.17rem !important; }
h4:not([class*="text-"]) { font-size: 1rem !important; }
h5:not([class*="text-"]) { font-size: 0.83rem !important; }
h6:not([class*="text-"]) { font-size: 0.67rem !important; }

