/* =========================================================================
   AUGMENTBI — DESIGN SYSTEM & DASHBOARD STYLES
   Tailored for Knowledge Expert, matching augmentbi.com architecture.
   High contrast, ultra-wide layout, zero awkward scrollbars.
   ========================================================================= */

:root {
  --navy-950: #070c15;
  --navy-900: #0c1524;
  --navy-800: #122035;
  --navy-700: #1a3049;
  --navy-600: #24405e;
  --blue-500: #456887;
  --teal-500: #fca246; /* AugmentBI signature warm amber */
  --teal-400: #ffb966;
  --teal-300: #ffd49b;
  --teal-strong: #c8741b;
  --white: #ffffff;
  --gray-50: #f6f8fa;
  --gray-100: #eef1f5;
  --gray-200: #e2e7ee;
  --gray-300: #cbd4e0;
  --gray-400: #97a3b5;
  --gray-500: #6d7a8c;
  --gray-600: #4d596b;
  --gray-900: #10151f;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body {
  font-family: var(--font-body);
  background-color: var(--gray-50);
  color: var(--gray-900);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Eyebrow badge matching augmentbi.com */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-strong);
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* Top bar styled like AugmentBI primary header */
.augmentbi-header {
  background: rgba(7, 12, 21, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   HIGH CONTRAST SIDEBAR NAVIGATION LINKS
   Fix: Dark slate-900 text on white card, clear high-contrast dark hover,
   and rich warm amber active state.
   ========================================================================= */
.ke-nav-item {
  color: #1e293b !important; /* Dark Slate-800 for maximum readability */
  background-color: transparent !important;
  transition: all 140ms ease !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  border: 1px solid transparent !important;
}

.ke-nav-item:hover {
  background-color: #0c1524 !important; /* Dark AugmentBI Navy on hover */
  color: #ffffff !important;           /* Crisp Pure White text on hover */
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(2px) !important;
}

.ke-nav-item:hover i {
  color: #fca246 !important; /* Brand Amber icon accent on hover */
}

.ke-nav-item.active {
  background-color: #070c15 !important; /* Solid Navy-950 for active selection */
  color: #ffffff !important;
  border-left: 4px solid #fca246 !important; /* Signature amber bar */
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(7, 12, 21, 0.15) !important;
}

.ke-nav-item.active i {
  color: #fca246 !important;
}

/* Primary Button in AugmentBI Brand Amber */
.btn-augment-primary {
  background-color: var(--teal-500);
  color: var(--navy-950) !important;
  font-weight: 600;
  transition: all 180ms ease;
}
.btn-augment-primary:hover {
  background-color: var(--teal-400);
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252, 162, 70, 0.35);
}
.btn-augment-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-augment-secondary {
  background: #ffffff;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  font-weight: 500;
  transition: all 180ms ease;
}
.btn-augment-secondary:hover {
  background: var(--gray-100);
  color: var(--navy-950);
  border-color: var(--gray-400);
}

/* HIGH CONTRAST FILE & FOLDER LINKS */
.ke-file-link {
  color: #0f172a !important; /* Slate-900: Pure readable dark text */
  font-weight: 600 !important;
  text-decoration: none;
  transition: color 150ms ease;
}
.ke-file-link:hover {
  color: #c8741b !important; /* Deep dark amber hover */
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
}

.ke-folder-link {
  color: #0f172a !important;
  font-weight: 700 !important;
  transition: color 150ms ease;
}
.ke-folder-link:hover {
  color: #c8741b !important;
  text-decoration: underline !important;
}

.ke-table-row {
  transition: background-color 150ms ease;
}
.ke-table-row:hover {
  background-color: #f1f5f9 !important; /* High contrast row highlight */
}

/* Pill Mode Selector in Knowledge Expert Chat */
.ke-mode-pill {
  transition: all 150ms ease;
}
.ke-mode-pill.active {
  background-color: var(--teal-500) !important;
  color: var(--navy-950) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(252, 162, 70, 0.3);
}

/* Card Styling */
.augment-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(10, 18, 32, 0.04);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================================================
   PHASE 8F — RESPONSIVE MOBILE NAVIGATION & ASSETS DRAWER STYLES
   ========================================================================= */

/* Backdrop Overlay for Drawers & Sheets */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 12, 21, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Primary Navigation Drawer: Overlays content from left, 80-85% viewport, max 320px */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background-color: #070c15;
  color: #ffffff;
  z-index: 70;
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer .ke-nav-item {
  color: #ffffff !important;
  background-color: #122035 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.9375rem !important;
  margin-bottom: 0.5rem !important;
}

.mobile-nav-drawer .ke-nav-item:hover,
.mobile-nav-drawer .ke-nav-item.active {
  background-color: #0c1524 !important;
  color: #fca246 !important;
  border-left: 4px solid #fca246 !important;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

/* Mobile Assets Browse / Filters Drawer: Slide in from left or right */
.mobile-filter-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 85vw;
  max-width: 340px;
  background-color: #ffffff;
  color: #10151f;
  z-index: 70;
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}
.mobile-filter-drawer.open {
  transform: translateX(0);
}

/* Mobile Asset Detail Sheet: Full-width / near full-width panel */
@media (max-width: 767px) {
  .mobile-detail-sheet {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    z-index: 80 !important;
    background-color: #ffffff !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    box-shadow: none !important;
  }
}

/* Prevent body scrolling behind open drawer */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Horizontal scrollable tab strip for sub-navigation */
.horizontal-subnav-tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.horizontal-subnav-tabs::-webkit-scrollbar {
  display: none;
}

