/* ========================================================================= */
/* VYRO SCANNER - PIXEL-PERFECT C# WPF DESIGN SYSTEM                         */
/* Based directly on MainWindow.xaml, Colors.xaml, Controls.xaml             */
/* ========================================================================= */

:root {
  /* Surface Palette (Obsidian Cyber) */
  --color-bg: #08090D;
  --color-sidebar: #090B10;
  --color-titlebar: #0B0D13;
  --color-surface: #101218;
  --color-surface-elevated: #151821;
  --color-card: #101218;
  --color-card-hover: #171B26;
  --color-card-dark: #0B0C11;

  /* 1px Sleek Borders */
  --color-border: #1B1E2B;
  --color-border-subtle: #13151F;
  --color-border-active: #2D3748;
  --color-border-titlebar: #151824;

  /* Accents */
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-accent-cyan: #06B6D4;
  --color-accent-muted: #1E293B;
  --color-accent-indigo: #4F46E5;
  --color-accent-indigo-hover: #4338CA;

  /* Typography Colors */
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #525A6C;
  --color-text-subtle: #475569;

  /* Severities & Categories */
  --color-critical: #EF4444;
  --color-critical-bg: #250C11;
  --color-critical-border: #5C1622;

  --color-clean: #10B981;
  --color-clean-bg: #0A2216;
  --color-clean-border: #165034;

  --color-warning: #F59E0B;
  --color-warning-bg: #2E2312;
  --color-warning-border: #4A3B12;

  /* Metrics & Dimensions */
  --radius-window: 10px;
  --radius-card: 10px;
  --radius-btn: 5px;
  --radius-pill: 4px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.4;
  border-radius: var(--radius-window);
}

/* Outer Window Frame with 10px Radius (Matching C# MainWindowRootBorder) */
#main-window-root {
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid #171A26;
  border-radius: var(--radius-window);
  overflow: hidden;
}

/* Custom Minimalist Scrollbar (Matching WPF ScrollBar style) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3A3E4D;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4E5469;
}
::-webkit-scrollbar-thumb:active {
  background: #5B82A6;
}

/* ========================================================================= */
/* 1. TOP TITLE / HEADER BAR (46px - Matching MainWindow.xaml)               */
/* ========================================================================= */
.top-header-bar {
  height: 46px;
  min-height: 46px;
  background: var(--color-titlebar);
  border-bottom: 1px solid var(--color-border-titlebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-top-left-radius: var(--radius-window);
  border-top-right-radius: var(--radius-window);
  -webkit-app-region: drag;
  z-index: 900;
}

.brand-section {
  width: 220px;
  display: flex;
  align-items: center;
}

.brand-logo-box {
  width: 26px;
  height: 26px;
  background: #111624;
  border: 1px solid #222B42;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  overflow: hidden;
}

.brand-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.brand-title-text {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

/* Breadcrumb / Active Page in Center */
.active-page-title {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  text-align: left;
}

/* Top Right Controls */
.header-right-controls {
  display: flex;
  align-items: center;
  -webkit-app-region: no-drag;
}

/* Language Switcher Pill Button (TR / EN) */
.lang-toggle-btn {
  background: #151824;
  border: 1px solid #222738;
  border-radius: 4px;
  padding: 3px 8px;
  margin-right: 12px;
  color: #60A5FA;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.lang-toggle-btn:hover {
  background: #1C2235;
  border-color: #3B82F6;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: #1E2332;
  margin-right: 8px;
}

/* Caption Buttons */
.caption-btns {
  display: flex;
  align-items: center;
}

.caption-btn {
  width: 36px;
  height: 28px;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin: 0 1px;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.caption-btn svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.caption-btn:hover {
  background: #1C2132;
  color: #FFFFFF;
}

.caption-btn:active {
  background: #293047;
}

.caption-btn.close-btn {
  width: 38px;
}

.caption-btn.close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.caption-btn.close-btn:active {
  background: #DC2626;
}

/* ========================================================================= */
/* 2. MAIN APP LAYOUT (Sidebar + Content Host)                               */
/* ========================================================================= */
.main-app-body {
  display: flex;
  flex: 1;
  height: calc(100vh - 46px);
  overflow: hidden;
}

/* Sidebar (220px - Matching MainWindow.xaml) */
.app-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--color-sidebar);
  border-right: 1px solid #141722;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom-left-radius: var(--radius-window);
}

.sidebar-menu-label {
  font-size: 10px;
  font-weight: 700;
  color: #525A6C;
  margin: 2px 0 8px 10px;
  letter-spacing: 0.8px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Nav Item (NavRadioButton style) */
.nav-btn {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  background: transparent;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-btn .nav-indicator {
  width: 3px;
  height: 22px;
  border-radius: 1.5px;
  background: var(--color-accent);
  position: absolute;
  left: 3px;
  display: none;
}

.nav-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-right: 11px;
  margin-left: 6px;
  flex-shrink: 0;
  transition: fill 0.15s ease;
}

.nav-btn:hover {
  background: #1C1D24;
  color: #F8FAFC;
}

.nav-btn.active {
  background: #22242D;
  color: #FFFFFF;
  font-weight: 600;
}

.nav-btn.active .nav-indicator {
  display: block;
}

.nav-btn.active svg {
  fill: #FFFFFF;
}

/* Sidebar Footer Links */
.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-link-btn {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 11px;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.footer-link-btn svg {
  width: 12px;
  height: 12px;
  fill: #525A6C;
  margin-right: 8px;
}

.footer-link-btn:hover {
  background: #151A27;
  color: #94A3B8;
}

.footer-link-btn:hover svg {
  fill: #94A3B8;
}

/* Admin Status Mini Pill */
.sidebar-admin-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  margin-top: 8px;
  background: #0B1612;
  border: 1px solid #143525;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
}

.sidebar-admin-pill.warning {
  background: #1E160E;
  border-color: #3F2B14;
  color: #F59E0B;
  cursor: pointer;
}

.sidebar-admin-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}

.sidebar-admin-pill.warning .sidebar-admin-dot {
  background: #F59E0B;
}

/* Content Host Area */
.content-host {
  flex: 1;
  background: var(--color-bg);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.view-content-wrapper {
  padding: 24px 28px 32px 28px;
}

/* ========================================================================= */
/* 3. COMMON CARDS, BUTTONS & FORM ELEMENTS                                  */
/* ========================================================================= */

/* Standard Card (Matching CardContainer & OverviewCardBorder) */
.card-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  margin-bottom: 18px;
  transition: border-color 0.15s ease;
}

.card-box:hover {
  border-color: #24293A;
}

/* Primary Button (Deep Sapphire / Restrained Indigo) */
.btn-primary {
  background: #4F46E5;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
  outline: none;
}

.btn-primary:hover {
  background: #4338CA;
}

.btn-primary:active {
  background: #3730A3;
}

/* Primary Blue Accent Button (Used in New Scan / Pin start) */
.btn-accent-blue {
  background: #3B82F6;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
  outline: none;
}

.btn-accent-blue:hover {
  background: #2563EB;
}

.btn-accent-blue:disabled {
  background: #1E293B;
  color: #64748B;
  cursor: not-allowed;
}

/* Secondary Button (Neutral Matte Dark) */
.btn-secondary {
  background: #151821;
  color: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.btn-secondary:hover {
  background: #171B26;
  border-color: #2D3748;
}

/* Danger Button (Understated Muted Crimson) */
.btn-danger {
  background: #24171A;
  color: #EF4444;
  border: 1px solid #402025;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.btn-danger:hover {
  background: #321D22;
  border-color: #EF4444;
  color: #FFFFFF;
}

/* Pill Action Button (OceanPillBtn in Findings) */
.btn-pill-action {
  background: #151824;
  color: #CBD5E1;
  border: 1px solid #232738;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
  transition: all 0.15s ease;
}

.btn-pill-action:hover {
  background: #1E2335;
  border-color: #3B82F6;
  color: #FFFFFF;
}

.btn-pill-action svg {
  width: 12px;
  height: 12px;
  fill: #94A3B8;
}

/* Text Inputs (TextBox style) */
.input-dark {
  background: #08090D;
  color: #F8FAFC;
  border: 1px solid #1B1E2B;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}

.input-dark:hover {
  border-color: #2D3748;
}

.input-dark:focus {
  border-color: #3B82F6;
}

/* ========================================================================= */
/* 4. DASHBOARD VIEW (Matching DashboardView.xaml)                           */
/* ========================================================================= */
.dashboard-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.dashboard-greeting-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.dashboard-greeting-sub {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

/* 4 Metric Cards Grid */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card-wpf {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}

.metric-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.metric-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.metric-icon-box svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.metric-title-text {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
}

.metric-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-number-text {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
}

.metric-badge-pill {
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
}

/* Middle Row: Waveform Chart + Donut */
.dashboard-middle-grid {
  display: grid;
  grid-template-columns: 2.3fr 1.1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.waveform-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.waveform-period-pill {
  background: #0B0D13;
  border: 1px solid #1C202E;
  border-radius: 5px;
  padding: 3px;
}

.waveform-period-inner {
  background: #1C2130;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}

.waveform-canvas-container {
  height: 140px;
  position: relative;
  display: flex;
}

.waveform-y-axis {
  width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0 10px 0;
  font-size: 9px;
  color: #475569;
}

.waveform-svg {
  flex: 1;
  width: 100%;
  height: 140px;
}

.waveform-x-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 22px;
  margin-top: 8px;
  font-size: 10px;
  color: #475569;
}

/* Donut Chart */
.donut-center-group {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 8px auto 12px auto;
}

.donut-svg {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}

.donut-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 6px;
  font-size: 11px;
}

.donut-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}

/* Recent Scans Table */
.recent-table-row {
  background: #0B0C11;
  border-radius: 5px;
  padding: 8px;
  margin: 3px 0;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1.8fr 1.2fr;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.recent-table-row:hover {
  background: #151824;
}

.notch-pin-group {
  display: flex;
  align-items: center;
}

.notch-bar {
  width: 2.5px;
  height: 14px;
  border-radius: 1px;
  margin-right: 8px;
}

.pin-text-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
}

.verdict-dot-group {
  display: flex;
  align-items: center;
}

.verdict-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
}

/* ========================================================================= */
/* 5. NEW SCAN VIEW (PIN + COMPACT SCANNING)                                 */
/* ========================================================================= */
.pin-view-center {
  width: 520px;
  margin: 60px auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glowing-logo-container {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.8));
}

.glowing-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pin-label-text {
  font-size: 16px;
  font-weight: 500;
  color: #CBD5E1;
  margin-bottom: 20px;
  text-align: center;
}

/* 6 Pin Boxes */
.pin-boxes-container {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pin-box-char {
  width: 54px;
  height: 62px;
  border-radius: 10px;
  background: #0F1219;
  border: 1.5px solid #2D3345;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  transition: border-color 0.15s ease;
}

.pin-box-char.filled {
  border-color: #3B82F6;
}

.pin-hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0.001;
  cursor: text;
  width: 100%;
  height: 100%;
}

.pin-error-banner {
  background: #251214;
  border: 1px solid #591C22;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #FCA5A5;
}

.pin-error-banner svg {
  width: 13px;
  height: 13px;
  fill: #EF4444;
}

/* Scan Scope Mode Selection */
.scan-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.mode-select-box {
  background: #0D1017;
  border: 1px solid #1C2232;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-select-box.selected {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.08);
}

.mode-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
}

.mode-desc {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.4;
}

/* Compact Scanning Screen (640x440 pitch black with glowing logo) */
.compact-scan-fullscreen {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-window);
}

.compact-center-content {
  width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compact-logo-big {
  width: 110px;
  height: 110px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 34px rgba(59, 130, 246, 0.85));
}

.compact-logo-big img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compact-stage-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 24px;
}

.compact-track-bar {
  width: 450px;
  height: 4px;
  background: #131620;
  border-radius: 2px;
  overflow: hidden;
}

.compact-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 70%, #93C5FD 95%, #FFFFFF 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.9);
  transition: width 0.2s ease-out;
}

.compact-pct-text {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  margin-top: 14px;
}

.compact-detail-text {
  font-size: 11px;
  color: #475569;
  margin-top: 8px;
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.compact-cancel-btn {
  margin-top: 26px;
  background: #10131E;
  border: 1px solid #1F263B;
  border-radius: 8px;
  padding: 7px 22px;
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.compact-cancel-btn:hover {
  background: #171C2B;
  border-color: #3B82F6;
}

/* ========================================================================= */
/* 6. FINDINGS & RESULTS VIEW (Matching FindingsView.xaml)                   */
/* ========================================================================= */
.findings-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 18px;
}

.breadcrumb-link {
  color: #64748B;
  cursor: pointer;
  font-weight: 500;
}

.breadcrumb-link:hover {
  color: #94A3B8;
}

.breadcrumb-pin {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #FFFFFF;
}

/* Hero Banner */
.findings-hero-card {
  background: #10121A;
  border: 1px solid #1A1E2B;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.hero-left-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-sub {
  font-size: 13px;
  color: #64748B;
  margin: 4px 0 20px 0;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-pin-box {
  background: #090B10;
  border: 1px solid #1D212F;
  border-radius: 5px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 6px;
  display: inline-block;
}

.hero-duration-val {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 6px;
}

.hero-tags-row {
  display: flex;
  gap: 8px;
}

.hero-game-tag {
  background: #14192B;
  border: 1px solid #25355E;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #60A5FA;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-report-tag {
  background: #141722;
  border: 1px solid #1F2538;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
}

/* Huge Verdict Box (Right Side) */
.hero-verdict-box {
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid;
}

.hero-verdict-box.cheating {
  background: #240B10;
  border-color: #541420;
}

.hero-verdict-box.clean {
  background: #092215;
  border-color: #134D2E;
}

.hero-verdict-icon-container {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.hero-verdict-icon-container svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero-verdict-box.cheating .hero-verdict-icon-container {
  color: #EF4444;
}

.hero-verdict-box.clean .hero-verdict-icon-container {
  color: #10B981;
}

.hero-verdict-word {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-verdict-box.cheating .hero-verdict-word {
  color: #EF4444;
}

.hero-verdict-box.clean .hero-verdict-word {
  color: #10B981;
}

.hero-verdict-risk {
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
}

.hero-verdict-box.cheating .hero-verdict-risk {
  color: #F87171;
}

.hero-verdict-box.clean .hero-verdict-risk {
  color: #34D399;
}

/* Findings Middle Grid: Radar & PC Info */
.findings-middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

/* Platform Accounts Card */
.accounts-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.account-col-box {
  border-radius: 6px;
  padding: 16px;
  border: 1px solid;
}

.account-col-box.steam {
  background: #0B0E17;
  border-color: #1C2438;
}

.account-col-box.discord {
  background: #0D0B17;
  border-color: #251C3D;
}

.account-item-pill {
  border: 1px solid;
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-item-pill.steam {
  background: #101422;
  border-color: #1E283D;
}

.account-item-pill.discord {
  background: #141024;
  border-color: #251D3D;
}

/* Findings Threat Item Card */
.threat-finding-item {
  background: #090B10;
  border: 1px solid #181B26;
  border-radius: 6px;
  padding: 14px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.threat-finding-item:hover {
  border-color: #24293A;
}

.threat-icon-red {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.threat-icon-red svg {
  width: 100%;
  height: 100%;
  fill: #EF4444;
}

.threat-content-group {
  flex: 1;
  overflow: hidden;
}

.threat-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.threat-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.threat-tag-pill {
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.threat-tag-pill.warning {
  background: #29200F;
  color: #F59E0B;
}

.threat-tag-pill.critical {
  background: #291216;
  color: #EF4444;
}

.threat-tag-pill.boot {
  background: #121A2E;
  color: #60A5FA;
}

.threat-tag-pill.deleted {
  background: #0D281E;
  color: #34D399;
}

.threat-source-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748B;
  margin-bottom: 3px;
}

.threat-path-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

/* ========================================================================= */
/* 7. SCAN HISTORY VIEW (Matching ScanHistoryView.xaml)                      */
/* ========================================================================= */
.history-table-header {
  display: grid;
  grid-template-columns: 80px 1.5fr 100px 130px 85px 75px 210px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  background: #0C0E14;
  border-bottom: 1px solid #1A1E2B;
}

.history-table-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 100px 130px 85px 75px 210px;
  padding: 10px 14px;
  font-size: 12px;
  color: #CBD5E1;
  background: #101219;
  border-bottom: 1px solid #171A26;
  align-items: center;
  transition: background 0.15s ease;
}

.history-table-row:nth-child(even) {
  background: #131622;
}

.history-table-row:hover {
  background: #181C2A;
}

/* ========================================================================= */
/* 8. IN-APP DARK CONFIRMATION MODAL                                         */
/* ========================================================================= */
.modal-backdrop-dark {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog-wpf {
  width: 430px;
  background: #10131E;
  border: 1px solid #252F48;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-circle-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: #2B1419;
  border: 1px solid #5C1D24;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-circle-icon svg {
  width: 20px;
  height: 20px;
  fill: #EF4444;
}

.modal-title-wpf {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-align: center;
}

.modal-desc-wpf {
  font-size: 13px;
  color: #94A3B8;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 14px;
}

.modal-session-pill {
  background: #090B10;
  border: 1px solid #1C2130;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 18px;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.hidden {
  display: none !important;
}

/* ========================================================================= */
/* 8. USB FORENSIC HISTORY & FIRMWARE AUDIT CARDS                           */
/* ========================================================================= */
.usb-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #161A26;
}

.usb-cat-pill {
  background: #0B0E17;
  border: 1px solid #1A2033;
  color: #94A3B8;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.usb-cat-pill:hover {
  background: #101422;
  border-color: #2E3852;
  color: #CBD5E1;
}

.usb-cat-pill.active {
  background: #121A2F;
  border-color: #3B82F6;
  color: #60A5FA;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.usb-cat-pill.storage.active {
  background: #082435;
  border-color: #0284C7;
  color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.usb-cat-pill.keyboard.active {
  background: #171433;
  border-color: #6366F1;
  color: #A5B4FC;
}

.usb-cat-pill.mouse.active {
  background: #261B0E;
  border-color: #D97706;
  color: #FCD34D;
}

.usb-cat-pill.audio.active {
  background: #2B0D23;
  border-color: #DB2777;
  color: #F472B6;
}

.usb-cat-pill.hub.active {
  background: #09261E;
  border-color: #059669;
  color: #34D399;
}

.usb-cat-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.usb-categorized-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.usb-category-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid #141724;
}

.usb-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.usb-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.usb-section-title.storage { color: #38BDF8; }
.usb-section-title.keyboard { color: #A5B4FC; }
.usb-section-title.mouse { color: #FCD34D; }
.usb-section-title.audio { color: #F472B6; }
.usb-section-title.hub { color: #34D399; }
.usb-section-title.other { color: #94A3B8; }

.usb-section-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.usb-section-empty {
  background: #090B10;
  border: 1px dashed #1B2132;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 11px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.usb-devices-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.usb-device-card {
  background: #0B0E17;
  border: 1px solid #182033;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.15s ease;
}

.usb-device-card:hover {
  border-color: #2563EB;
  background: #0E121E;
}

.usb-device-card.cat-storage { border-left: 3px solid #38BDF8; }
.usb-device-card.cat-keyboard { border-left: 3px solid #818CF8; }
.usb-device-card.cat-mouse { border-left: 3px solid #F59E0B; }
.usb-device-card.cat-audio { border-left: 3px solid #EC4899; }
.usb-device-card.cat-hub { border-left: 3px solid #10B981; }
.usb-device-card.cat-other { border-left: 3px solid #64748B; }

.usb-status-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.usb-status-tag.active {
  background: #0D281E;
  color: #34D399;
  border: 1px solid #059669;
}

.usb-status-tag.historical {
  background: #181E2C;
  color: #94A3B8;
  border: 1px solid #28334A;
}

.firmware-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .firmware-info-grid {
    grid-template-columns: 1fr;
  }
}

.firmware-info-cell {
  background: #090B11;
  border: 1px solid #171B26;
  border-radius: 6px;
  padding: 10px 14px;
}

.firmware-cell-label {
  font-size: 10px;
  color: #64748B;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.firmware-cell-val {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  word-break: break-all;
}


/* ========================================================================= */
/* SAPPHIRE BLUE THEME, ROUND DOT CURSOR & CYBER-PULSE BUTTON ANIMATIONS     */
/* ========================================================================= */
:root {
  --color-bg: #040814;
  --color-sidebar: #060C1D;
  --color-titlebar: #070F24;
  --color-surface: #0A1530;
  --color-surface-elevated: #0F1E42;
  --color-card: #0A142E;
  --color-card-hover: #102048;
  --color-card-dark: #060D1E;
  --color-border: rgba(59, 130, 246, 0.2);
  --color-border-subtle: rgba(59, 130, 246, 0.12);
  --color-border-active: rgba(96, 165, 250, 0.45);
  --color-border-titlebar: rgba(59, 130, 246, 0.18);
  --color-accent: #3B82F6;
  --color-accent-hover: #2563EB;
  --color-accent-cyan: #38BDF8;
  --cursor-dot-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%2338bdf8' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, auto;
  --cursor-dot-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='10' fill='rgba(56,189,248,0.18)' stroke='%2360a5fa' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='14' r='4.5' fill='%23ffffff'/%3E%3C/svg%3E") 14 14, pointer;
}

html,
body,
* {
  cursor: var(--cursor-dot-default) !important;
}

a,
button,
input,
select,
label,
[role="button"],
.btn-primary,
.btn-accent-blue,
.btn-secondary,
.btn-pill-action,
.nav-btn,
.lang-toggle-btn {
  cursor: var(--cursor-dot-hover) !important;
}

.btn-primary,
.btn-accent-blue,
.btn-secondary,
.btn-pill-action,
.nav-btn,
.lang-toggle-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.28s ease, color 0.2s ease !important;
}

.btn-primary::before,
.btn-accent-blue::before,
.btn-pill-action::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.32) 0%, rgba(37, 99, 235, 0.14) 100%);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover::before,
.btn-accent-blue:hover::before,
.btn-pill-action:hover::before,
.btn-secondary:hover::before {
  transform: scaleY(1);
}

.btn-primary,
.btn-accent-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0284c7 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-primary:hover,
.btn-accent-blue:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #7dd3fc !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2), 0 10px 24px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.btn-primary:active,
.btn-accent-blue:active,
.btn-secondary:active,
.btn-pill-action:active {
  transform: translateY(1px) scale(0.95) !important;
}

.btn-secondary:hover {
  border-color: #38bdf8 !important;
  background: rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-2px);
}

.nav-btn:hover {
  background: rgba(59, 130, 246, 0.14) !important;
  transform: translateX(3px);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.24) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.28);
}
