/**
 * AI Command Center — System Flowchart & Graph Styles
 * Dark cyber canvas, rounded component cards, glowing directional edges, minimap, and inspector drawer.
 */

.flowchart-page,
#pageSystemFlowchart {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: calc(100vh - 130px) !important;
  min-height: 600px !important;
  background: #070a12 !important;
  background-color: #070a12 !important;
  color: #f8fafc !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

/* --- Top Graph Header & Controls Bar --- */
.fc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.98) !important;
  background-color: rgba(15, 23, 42, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px);
  z-index: 20;
  flex-shrink: 0;
}

.fc-toolbar-left,
.fc-toolbar-center,
.fc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.fc-mode-toggle {
  display: flex;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 6px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fc-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-mode-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.fc-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.flowchart-page .fc-search-input,
#pageSystemFlowchart .fc-search-input,
[data-theme="light"] .flowchart-page .fc-search-input,
:root:not([data-theme="dark"]) .flowchart-page .fc-search-input {
  background: rgba(30, 41, 59, 0.9) !important;
  background-color: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f8fafc !important;
  font-size: 12px !important;
  padding: 6px 10px 6px 28px !important;
  border-radius: 6px !important;
  width: 200px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.flowchart-page .fc-search-input:focus,
#pageSystemFlowchart .fc-search-input:focus,
[data-theme="light"] .flowchart-page .fc-search-input:focus,
:root:not([data-theme="dark"]) .flowchart-page .fc-search-input:focus {
  width: 250px;
  border-color: #6366f1 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3) !important;
}

.flowchart-page .fc-search-input::placeholder,
#pageSystemFlowchart .fc-search-input::placeholder,
[data-theme="light"] .flowchart-page .fc-search-input::placeholder,
:root:not([data-theme="dark"]) .flowchart-page .fc-search-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.fc-search-icon {
  position: absolute;
  left: 9px;
  color: #94a3b8;
  font-size: 12px;
  pointer-events: none;
}

.flowchart-page .fc-filter-select,
#pageSystemFlowchart .fc-filter-select,
[data-theme="light"] .flowchart-page .fc-filter-select,
:root:not([data-theme="dark"]) .flowchart-page .fc-filter-select {
  background: rgba(30, 41, 59, 0.9) !important;
  background-color: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #f8fafc !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  cursor: pointer;
}

.flowchart-page .fc-filter-select option,
#pageSystemFlowchart .fc-filter-select option,
[data-theme="light"] .flowchart-page .fc-filter-select option,
:root:not([data-theme="dark"]) .flowchart-page .fc-filter-select option {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

.fc-zoom-controls {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
}

.fc-zoom-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fc-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fc-zoom-level {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  padding: 0 8px;
  min-width: 44px;
  text-align: center;
}

/* --- Secondary Filter Pills Strip --- */
.fc-sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.85) !important;
  background-color: rgba(15, 23, 42, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 11px;
  z-index: 15;
  flex-shrink: 0;
}

.fc-legend-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.fc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-blue  { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.dot-amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-red   { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot-grey  { background: #64748b; }

/* --- Graph Canvas Mount Container & Viewport --- */
#flowchartCanvasMount {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 450px !important;
  position: relative !important;
  overflow: hidden !important;
  background: #0b0f19 !important;
  background-color: #0b0f19 !important;
}

.fc-viewport,
#fcViewport {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 450px !important;
  position: relative !important;
  overflow: hidden !important;
  background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 24px 24px, #0b0f19 !important;
  background-color: #0b0f19 !important;
  cursor: grab;
  user-select: none;
}

.fc-viewport:active {
  cursor: grabbing;
}

.fc-canvas-transform {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform-origin: 0 0 !important;
  transition: transform 0.05s ease-out;
}

/* --- SVG Edge Layer --- */
.fc-svg-edges {
  position: absolute;
  top: 0;
  left: 0;
  width: 6000px;
  height: 6000px;
  pointer-events: none;
  z-index: 1;
}

.fc-edge-path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 2px;
  stroke-linecap: round;
  transition: stroke 0.2s, stroke-width 0.2s;
}

.fc-edge-path.edge-active {
  stroke: #6366f1;
  stroke-width: 2.5px;
  stroke-dasharray: 6 3;
  animation: edgeDashMove 1.2s linear infinite;
}

.fc-edge-path.edge-running {
  stroke: #3b82f6;
  stroke-width: 2.5px;
  stroke-dasharray: 8 4;
  animation: edgeDashMove 0.8s linear infinite;
}

.fc-edge-path.edge-blocked {
  stroke: #ef4444;
  stroke-dasharray: 4 4;
}

@keyframes edgeDashMove {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.fc-edge-label-group {
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
}

.fc-edge-label-group.visible,
.fc-edge-label-group.selected,
.fc-edge-label-group.in-workflow,
.fc-edge-label-group:hover {
  opacity: 1 !important;
}

.fc-edge-label-bg {
  fill: #0f172a;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1px;
  rx: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: stroke 0.15s, fill 0.15s;
}

.fc-edge-label-group:hover .fc-edge-label-bg,
.fc-edge-label-group.selected .fc-edge-label-bg {
  fill: #1e1b4b;
  stroke: #818cf8;
}

.fc-edge-label-text {
  font-size: 9px;
  font-family: var(--font-mono, monospace);
  fill: #94a3b8;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill 0.15s;
}

.fc-edge-label-group:hover .fc-edge-label-text,
.fc-edge-label-group.selected .fc-edge-label-text {
  fill: #ffffff;
}

/* --- Category Group Boundaries --- */
.fc-category-column {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.25);
  border-radius: 12px;
  padding: 16px;
  pointer-events: none;
  z-index: 0;
}

.fc-category-header {
  position: absolute;
  top: -12px;
  left: 20px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* --- Component Nodes --- */
.fc-nodes-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.fc-node,
.flowchart-page .fc-node,
#pageSystemFlowchart .fc-node {
  position: absolute;
  width: 230px;
  background: rgba(15, 23, 42, 0.95) !important;
  background-color: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  color: #f8fafc !important;
}

.fc-node:hover,
.flowchart-page .fc-node:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.25);
  z-index: 10;
}

.fc-node.selected,
.flowchart-page .fc-node.selected {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  z-index: 11;
}

.fc-node.dimmed {
  opacity: 0.25;
  filter: grayscale(80%);
}

.fc-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fc-node-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-orchestration { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tag-agent         { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-execution     { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.tag-approval      { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-integration   { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-scheduling    { background: rgba(14, 165, 233, 0.2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.tag-storage       { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }
.tag-monitoring    { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.tag-other,
.tag-default       { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.3); }

.fc-node-health-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
}

.fc-node-body {
  padding: 10px 12px;
}

.fc-node-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-node-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.fc-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Status Colors Required */
.badge-running   { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-completed { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-verified  { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-approval  { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-pending   { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-waiting   { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-failed    { background: rgba(239, 68, 68, 0.2);  color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-blocked   { background: rgba(239, 68, 68, 0.2);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-idle      { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

.fc-node-counters {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  color: #64748b;
}

/* --- Minimap Overlay --- */
.fc-minimap {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 140px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  z-index: 25;
  transition: opacity 0.2s ease;
}

.fc-minimap svg {
  width: 100%;
  height: 100%;
}

.fc-minimap-viewport-rect {
  fill: rgba(99, 102, 241, 0.15);
  stroke: #6366f1;
  stroke-width: 1.5px;
}

/* --- Slide-Over Node Inspector Drawer --- */
.fc-drawer,
.flowchart-page .fc-drawer,
#pageSystemFlowchart .fc-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  z-index: 30;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-drawer.open,
.flowchart-page .fc-drawer.open,
#pageSystemFlowchart .fc-drawer.open,
#fcDrawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 50 !important;
}

.fc-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(15, 23, 42, 0.95) !important;
}

.fc-drawer-category,
#drawerCategory,
.fc-drawer #drawerCategory,
#fcDrawer #drawerCategory {
  font-size: 11px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #38bdf8 !important; /* Vivid sky blue with high contrast */
  margin-bottom: 3px !important;
  display: block !important;
}

.fc-drawer-title,
#drawerTitle,
.fc-drawer #drawerTitle,
#fcDrawer #drawerTitle {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #ffffff !important; /* Pure white with !important */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fc-drawer-close,
#btnDrawerClose {
  background: transparent;
  border: none;
  color: #94a3b8 !important;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.fc-drawer-close:hover,
#btnDrawerClose:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.fc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.fc-drawer-section {
  margin-bottom: 20px;
}

.fc-drawer-section-title,
.fc-drawer .fc-drawer-section-title,
#fcDrawer .fc-drawer-section-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #94a3b8 !important; /* Clear Slate instead of dark grey */
  margin-bottom: 8px !important;
}

.fc-prop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 12px;
}

.fc-prop-key,
.fc-drawer .fc-prop-key,
#fcDrawer .fc-prop-key {
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.fc-prop-val,
.fc-drawer .fc-prop-val,
#fcDrawer .fc-prop-val {
  color: #f1f5f9 !important;
  font-family: var(--font-mono, monospace);
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* Status High-Contrast Indicators in Drawer */
.fc-val-healthy  { color: #34d399 !important; font-weight: 600 !important; }
.fc-val-degraded { color: #fbbf24 !important; font-weight: 600 !important; }
.fc-val-failed   { color: #f87171 !important; font-weight: 600 !important; }
.fc-val-idle     { color: #60a5fa !important; font-weight: 600 !important; }
.fc-val-running  { color: #38bdf8 !important; font-weight: 600 !important; }
.fc-val-waiting  { color: #fbbf24 !important; font-weight: 600 !important; }
.fc-val-pending  { color: #fbbf24 !important; font-weight: 700 !important; }
.fc-val-muted    { color: #cbd5e1 !important; font-weight: 500 !important; }
.fc-val-shared   { color: #c084fc !important; font-weight: 600 !important; }

.fc-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  cursor: pointer;
  transition: all 0.2s;
}

.fc-action-btn:hover {
  background: #4f46e5;
  color: #ffffff;
}

/* --- Workflow Detail Bar (When In Workflow View) --- */
.fc-workflow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: rgba(30, 41, 59, 0.9);
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 12px;
  z-index: 18;
}

.fc-progress-track {
  width: 160px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.fc-progress-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease;
}

/* --- Loading & Empty Overlays --- */
.fc-loading-overlay,
.fc-empty-overlay {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(4px);
  z-index: 25;
}

/* --- Contextual Inspection & Mobile Drawer Styles (Phase 4) --- */
.fc-edge-path {
  cursor: pointer;
}

.fc-edge-path:hover,
.fc-edge-path.hovered,
.fc-edge-path.node-connected-hover {
  stroke-width: 3.5px !important;
  stroke: #818cf8 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 5px rgba(129, 140, 248, 0.7));
}

.fc-edge-path.selected {
  stroke: #a855f7 !important;
  stroke-width: 4px !important;
  filter: drop-shadow(0 0 6px #a855f7);
}

.fc-edge-label-group:hover .fc-edge-label-bg {
  fill: #1e1b4b;
  stroke: #818cf8;
}

.fc-drawer-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  gap: 4px;
}

.fc-dtab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fc-dtab-btn:hover {
  color: #ffffff;
}

.fc-dtab-btn.active {
  color: #818cf8;
  border-bottom-color: #818cf8;
}

.fc-conn-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
}

.fc-conn-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(3px);
}

.fc-conn-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-conn-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.fc-conn-rel {
  font-size: 9px;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
}

.fc-history-card {
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 8px;
}

.fc-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.fc-history-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.fc-log-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

.fc-log-time {
  font-family: var(--font-mono, monospace);
  color: #64748b;
  font-size: 10px;
  white-space: nowrap;
}

.fc-log-msg {
  color: #cbd5e1;
  line-height: 1.35;
  word-break: break-word;
}

.fc-log-sev {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.sev-error   { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.sev-warning { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.sev-info    { background: #3b82f6; }

.fc-approval-card {
  padding: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  margin-bottom: 8px;
}

.fc-tab-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  margin-left: 4px;
}

.fc-drawer-loading-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 12px;
}

.fc-spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: fc-spin 0.8s linear infinite;
}

@keyframes fc-spin {
  to { transform: rotate(360deg); }
}

.fc-drawer-error {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #f87171;
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fc-retry-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.fc-retry-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.fc-data-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #cbd5e1;
  max-height: 180px;
  overflow-y: auto;
}

/* --- Phase 5 Runtime Live Status Styles --- */
.fc-node.pulse-approval {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.4) !important;
  animation: fc-pulse-amber 2s infinite ease-in-out;
}

@keyframes fc-pulse-amber {
  0%, 100% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5), 0 0 16px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.8), 0 0 24px rgba(245, 158, 11, 0.6); }
}

.fc-node.pending-downstream {
  border-style: dashed !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  opacity: 0.88;
}

.fc-node.failed-node {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5), 0 0 20px rgba(239, 68, 68, 0.4) !important;
  animation: fc-pulse-red 2s infinite ease-in-out;
}

@keyframes fc-pulse-red {
  0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5), 0 0 16px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.8), 0 0 24px rgba(239, 68, 68, 0.6); }
}

.fc-node.blocked-downstream {
  border-style: dashed !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  opacity: 0.82;
}

.fc-edge-path.edge-pending-downstream {
  stroke: #f59e0b !important;
  stroke-dasharray: 6,4 !important;
}

.fc-edge-path.failed-edge {
  stroke: #ef4444 !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 6px #ef4444);
}

.fc-edge-path.edge-unobserved {
  stroke: #475569 !important;
  stroke-dasharray: 4,4 !important;
  opacity: 0.55 !important;
}

/* Distinct State Badges */
.badge-executed   { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.4); }
.badge-verified   { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-blocked    { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px dashed rgba(239, 68, 68, 0.5); }
.badge-approved   { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-waiting    { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px dashed rgba(245, 158, 11, 0.4); }

.dot-amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

/* --- Phase 6: End-to-End Workflow & Dependency Highlights --- */
.fc-shared-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  margin-top: 5px;
}

.fc-node.dep-upstream {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.5), 0 0 16px rgba(6, 182, 212, 0.35) !important;
  z-index: 12 !important;
}

.fc-node.dep-downstream {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5), 0 0 16px rgba(168, 85, 247, 0.35) !important;
  z-index: 12 !important;
}

.fc-edge-path.edge-upstream {
  stroke: #06b6d4 !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 6px #06b6d4);
}

.fc-edge-path.edge-downstream {
  stroke: #a855f7 !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 6px #a855f7);
}

.fc-view-toggle {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
}

.fc-view-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.fc-view-btn:hover {
  color: #ffffff;
}

.fc-view-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

/* Accessible Compact Relationship Table (Phase 6 & Cyber Polish) */
.fc-list-container,
#flowchartListMount {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  padding: 24px 28px 48px !important;
  background: #070a12 !important;
  background-color: #070a12 !important;
  color: #f8fafc !important;
  box-sizing: border-box !important;
  z-index: 5 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) rgba(15, 23, 42, 0.6);
}

.fc-list-container::-webkit-scrollbar,
#flowchartListMount::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.fc-list-container::-webkit-scrollbar-track,
#flowchartListMount::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}

.fc-list-container::-webkit-scrollbar-thumb,
#flowchartListMount::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}

.fc-list-container::-webkit-scrollbar-thumb:hover,
#flowchartListMount::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

.fc-list-container:not(.hidden),
#flowchartListMount:not(.hidden) {
  display: block !important;
}

.fc-list-container.hidden,
#flowchartListMount.hidden {
  display: none !important;
}

/* Header & Metadata within List View */
.fc-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.fc-list-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fc-list-title {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fc-list-subtitle {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.fc-list-counter-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.fc-list-wf-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
}

/* Table Card Container & Scroll Wrapper */
.fc-table-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.fc-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #cbd5e1;
  text-align: left;
}

.fc-table thead th {
  padding: 12px 16px;
  background: #0b1120;
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 5;
  white-space: nowrap;
}

.fc-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.fc-table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.fc-table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.08) !important;
}

.fc-table tbody tr:focus {
  outline: 2px solid #6366f1;
  outline-offset: -2px;
}

.fc-table tbody tr.selected td {
  background: rgba(99, 102, 241, 0.18) !important;
  border-bottom-color: rgba(99, 102, 241, 0.4) !important;
}

/* Table Cell Components */
.fc-table-node-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
}

.fc-table-node-id {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}

.fc-table-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}

.fc-table-health-chip.health-ok {
  color: #10b981;
}

.fc-table-health-chip.health-warn {
  color: #f59e0b;
}

.fc-table-health-chip.health-unconfigured {
  color: #94a3b8;
}

.fc-table-health-chip.health-err {
  color: #ef4444;
}

.fc-table-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.fc-table-empty-dash {
  color: #64748b;
  font-size: 12px;
}

.fc-dep-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dep-pill-upstream {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.dep-pill-downstream {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.fc-dep-trans {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
}

.btn-inspect-row {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 5px !important;
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  color: #a5b4fc !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.btn-inspect-row:hover {
  background: #4f46e5 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5) !important;
}

.fc-table-empty-cell {
  text-align: center;
  padding: 36px 20px !important;
  color: #64748b;
}

.fc-table-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

/* Collapsible Category Rank Headers */
.fc-rank-header {
  position: absolute;
  top: 30px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  z-index: 3;
}

.fc-rank-header:hover {
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.5);
}

.fc-impact-card {
  padding: 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.fc-impact-confirmed {
  border-left: 3px solid #ef4444;
}

.fc-impact-possible {
  border-left: 3px solid #f59e0b;
}

.fc-recent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  margin-right: 4px;
}

/* Mobile Full-Screen Drawer */
@media (max-width: 768px) {
  .fc-drawer {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
  }
  .fc-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .fc-toolbar-left,
  .fc-toolbar-center,
  .fc-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .fc-minimap {
    width: 130px;
    height: 90px;
    bottom: 12px;
    right: 12px;
  }
}

/* --- Fullscreen Mode (Native & CSS Overlay) --- */
#pageSystemFlowchart:fullscreen,
#pageSystemFlowchart:-webkit-full-screen,
#pageSystemFlowchart.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 99999 !important;
  box-shadow: none !important;
}

#pageSystemFlowchart:fullscreen #flowchartCanvasMount,
#pageSystemFlowchart:-webkit-full-screen #flowchartCanvasMount,
#pageSystemFlowchart.is-fullscreen #flowchartCanvasMount {
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 0% !important;
}

#pageSystemFlowchart:fullscreen .fc-viewport,
#pageSystemFlowchart:-webkit-full-screen .fc-viewport,
#pageSystemFlowchart.is-fullscreen .fc-viewport {
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 0% !important;
}

#pageSystemFlowchart:fullscreen .fc-list-container,
#pageSystemFlowchart:-webkit-full-screen .fc-list-container,
#pageSystemFlowchart.is-fullscreen .fc-list-container {
  height: 100% !important;
}

#btnFullscreenFlowchart {
  transition: all 0.2s ease;
  user-select: none;
}

#btnFullscreenFlowchart:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* =========================================================================
   Dedicated Governance Hub & Approvals View Components in Inspector Drawer
   ========================================================================= */
.fc-gov-hub-card {
  background: rgba(30, 41, 59, 0.7) !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fc-gov-hub-card.pending {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

.fc-gov-hub-card.clear {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.fc-gov-hub-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 6px !important;
}

.fc-gov-hub-title {
  font-size: 13px !important;
  font-weight: 700 !important;
}

.fc-gov-hub-card.pending .fc-gov-hub-title {
  color: #fbbf24 !important;
}

.fc-gov-hub-card.clear .fc-gov-hub-title {
  color: #34d399 !important;
}

.fc-gov-hub-desc {
  font-size: 12px !important;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  margin-bottom: 12px !important;
}

.fc-gov-hub-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 9px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.fc-gov-hub-btn-primary {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border: 1px solid #6366f1 !important;
}

.fc-gov-hub-btn-primary:hover {
  background: #4338ca !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.5) !important;
}

/* History Cards in Drawer */
.fc-history-card {
  background: rgba(30, 41, 59, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  transition: all 0.2s ease !important;
}

.fc-history-card:hover {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

.fc-history-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 4px !important;
}

.fc-history-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
}

.fc-history-detail {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  margin-top: 4px !important;
}

.fc-history-meta {
  font-size: 10px !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}

/* State Badges in Drawer */
.fc-state-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  letter-spacing: 0.04em !important;
}

.fc-state-badge.badge-running {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
}

.fc-state-badge.badge-completed,
.fc-state-badge.badge-executed,
.fc-state-badge.badge-approved {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.fc-state-badge.badge-failed,
.fc-state-badge.badge-rejected {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.fc-state-badge.badge-waiting,
.fc-state-badge.badge-pending {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

/* Tab Active Contrast */
.fc-dtab-btn {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.fc-dtab-btn:hover {
  color: #f1f5f9 !important;
}

.fc-dtab-btn.active {
  color: #ffffff !important;
  border-bottom: 2px solid #818cf8 !important;
}

.fc-tab-badge {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  font-weight: 700 !important;
}

/* Explicit Global Light Theme Immunity for Drawer & Flowchart */
html[data-theme="light"] #fcDrawer,
html[data-theme="light"] .fc-drawer,
html:not([data-theme="dark"]) #fcDrawer,
html:not([data-theme="dark"]) .fc-drawer {
  background: #0f172a !important;
  color: #f8fafc !important;
}

html[data-theme="light"] #fcDrawer #drawerCategory,
html[data-theme="light"] .fc-drawer #drawerCategory,
html:not([data-theme="dark"]) #fcDrawer #drawerCategory,
html:not([data-theme="dark"]) .fc-drawer #drawerCategory {
  color: #38bdf8 !important;
}

html[data-theme="light"] #fcDrawer #drawerTitle,
html[data-theme="light"] .fc-drawer #drawerTitle,
html:not([data-theme="dark"]) #fcDrawer #drawerTitle,
html:not([data-theme="dark"]) .fc-drawer #drawerTitle {
  color: #ffffff !important;
}

html[data-theme="light"] #fcDrawer .fc-drawer-section-title,
html[data-theme="light"] .fc-drawer .fc-drawer-section-title,
html:not([data-theme="dark"]) #fcDrawer .fc-drawer-section-title,
html:not([data-theme="dark"]) .fc-drawer .fc-drawer-section-title {
  color: #94a3b8 !important;
}

html[data-theme="light"] #fcDrawer .fc-prop-key,
html[data-theme="light"] .fc-drawer .fc-prop-key,
html:not([data-theme="dark"]) #fcDrawer .fc-prop-key,
html:not([data-theme="dark"]) .fc-drawer .fc-prop-key {
  color: #94a3b8 !important;
}

html[data-theme="light"] #fcDrawer .fc-prop-val,
html[data-theme="light"] .fc-drawer .fc-prop-val,
html:not([data-theme="dark"]) #fcDrawer .fc-prop-val,
html:not([data-theme="dark"]) .fc-drawer .fc-prop-val {
  color: #f1f5f9 !important;
}



