/* Citrix VDI Desktop Styles */
:root {
  --taskbar-height: 44px;
  --citrix-bar-height: 28px;
  --win-accent: #0078d4;
  --win-bg: #0b1a30;
  --burp-bg: #20242a;
  --burp-tab-active: #2b313a;
  --burp-border: #3b4252;
  --burp-orange: #ff6633;
  --burp-text: #e2e8f0;
}

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

/* Authentic Windows Blue Text Selection */
::selection {
  background: #0078d4 !important;
  color: #ffffff !important;
}
::-moz-selection {
  background: #0078d4 !important;
  color: #ffffff !important;
}

/* Selectable Text Areas & Documents across Desktop */
.selectable-editor,
.word-document,
.word-page,
.notebook-code-input,
.notebook-content,
.notepad-editor,
.burp-editor,
.burp-advisory-pane,
.burp-issue-row,
.chrome-webcontent,
[contenteditable="true"],
textarea,
input[type="text"] {
  user-select: text !important;
  -webkit-user-select: text !important;
}

body, html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #fff;
}

/* VDI Container */
#vdi-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1e3a8a 0%, #0f172a 70%, #020617 100%);
  cursor: default;
}

/* Local vs Remote Cursor */
#vdi-viewport.custom-cursor {
  cursor: none;
}

#vdi-remote-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 999999;
  transform: translate(0, 0);
  transition: opacity 0.2s ease;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.7));
}

#vdi-remote-cursor svg {
  width: 100%;
  height: 100%;
}

/* Citrix Workspace Pull-Down Bar */
#citrix-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 30px;
  background: rgba(18, 22, 28, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  font-size: 11px;
  color: #94a3b8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

#citrix-bar:hover {
  background: rgba(15, 23, 42, 0.98);
  color: #f1f5f9;
}

.citrix-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #38bdf8;
}

.citrix-brand svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.citrix-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.citrix-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.citrix-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.citrix-ping {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
}

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
}

.ping-dot.warning {
  background-color: #eab308;
}

.ping-dot.danger {
  background-color: #ef4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Thinwire Blocky Overlay (Software Video Encoder Lag Artifacts) */
#thinwire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50000;
  opacity: 0;
  transition: opacity 0.15s ease;
}

#thinwire-canvas.active {
  opacity: 0.85;
}

/* Latency Spike Banner - Permanently hidden from user per requirements */
#spike-banner {
  display: none !important;
}

/* Busy cursor spinner on remote cursor */
#vdi-remote-cursor.busy .cursor-busy-spinner {
  display: block;
}

.cursor-busy-spinner {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(0, 120, 212, 0.3);
  border-top-color: #0078d4;
  border-radius: 50%;
  animation: citrixSpin 0.75s linear infinite;
  box-shadow: 0 0 6px rgba(0, 120, 212, 0.5);
}

@keyframes citrixSpin {
  100% { transform: rotate(360deg); }
}

/* Sluggish Window Pending State */
.win-window.vdi-busy {
  cursor: wait !important;
}
.win-window.vdi-busy * {
  cursor: wait !important;
}
.win-window.vdi-busy .win-titlebar {
  filter: brightness(0.92);
}
.win-control-btn.pending-busy {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* Thinwire Remote Framebuffer Desktop Lock (Network-locked Window Maximization / Switching) */
#vdi-viewport.vdi-locked,
#desktop-viewport.vdi-locked {
  cursor: wait !important;
  filter: brightness(0.96) contrast(0.95);
}

#vdi-viewport.vdi-locked *,
#desktop-viewport.vdi-locked * {
  cursor: wait !important;
}

#vdi-viewport.vdi-locked .taskbar {
  filter: brightness(0.88);
}

/* Authentic Thinwire Choppy Blocky Video Tile Frame Drop (Zero opacity fade, 100% solid raster bands) */
@keyframes thinwireTileRedraw {
  0%, 25% {
    clip-path: inset(0 0 74% 0);
    filter: contrast(1.5) brightness(0.9) saturate(0.7) hue-rotate(1deg);
  }
  26%, 52% {
    clip-path: inset(0 0 46% 0);
    filter: contrast(1.35) brightness(1.08) saturate(0.82);
  }
  53%, 78% {
    clip-path: inset(0 0 18% 0);
    filter: contrast(1.2) brightness(0.96) saturate(0.9);
  }
  79%, 93% {
    clip-path: inset(0 0 0 0);
    filter: contrast(1.08) brightness(1.01) saturate(0.96);
  }
  94%, 100% {
    clip-path: none;
    filter: none;
  }
}

@keyframes thinwireTileRedrawMax {
  0%, 20% {
    clip-path: inset(0 0 80% 0);
    filter: contrast(1.55) brightness(0.88) saturate(0.68);
  }
  21%, 40% {
    clip-path: inset(0 0 58% 0);
    filter: contrast(1.4) brightness(1.1) saturate(0.78);
  }
  41%, 60% {
    clip-path: inset(0 0 36% 0);
    filter: contrast(1.28) brightness(0.95) saturate(0.88);
  }
  61%, 80% {
    clip-path: inset(0 0 14% 0);
    filter: contrast(1.16) brightness(1.03) saturate(0.94);
  }
  81%, 93% {
    clip-path: inset(0 0 0 0);
    filter: contrast(1.08) saturate(0.98);
  }
  94%, 100% {
    clip-path: none;
    filter: none;
  }
}

.win-window.win-switching-in,
.win-window.win-switching-max {
  opacity: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  will-change: clip-path, filter;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.win-window.win-switching-in {
  animation: thinwireTileRedraw 0.85s steps(1) forwards !important;
}

.win-window.win-switching-max {
  animation: thinwireTileRedrawMax 1.15s steps(1) forwards !important;
}

/* Thinwire Remote Framebuffer Scanline & Tearing Seam Overlay */
.win-window.win-switching-in::after,
.win-window.win-switching-max::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 2px,
    transparent 2px,
    transparent 4px
  );
  box-shadow: inset 0 -2px 0 0 rgba(0, 120, 212, 0.65);
  z-index: 99999;
}

.win-window.win-switching-in .win-titlebar,
.win-window.win-switching-max .win-titlebar {
  background: #1c1c1c !important;
  color: #777777 !important;
  transition: none !important;
}

/* Taskbar App Button Loading Indicator */
.taskbar-app-btn.pending-load {
  background: rgba(255, 255, 255, 0.14) !important;
  position: relative;
}
.taskbar-app-btn.pending-load::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #0078d4;
  animation: taskbarPulse 0.8s infinite alternate ease-in-out;
}
@keyframes taskbarPulse {
  0% { opacity: 0.3; transform: scaleX(0.2); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Taskbar Thumbnail Hover Preview Popup - Crisp Thinwire Bitmap Tile */
#taskbar-preview-popup {
  position: absolute;
  bottom: 48px;
  background: rgba(24, 24, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 999999;
  cursor: pointer;
  animation: vdiPreviewTileDecompress 0.18s steps(2) !important;
  user-select: none;
}

/* Thinwire 2-step Bitmap Tile Decompression (No smooth transform, no blur) */
@keyframes vdiPreviewTileDecompress {
  0% {
    opacity: 0.75;
    filter: contrast(1.35) brightness(0.92);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 60%);
  }
  50% {
    opacity: 0.92;
    filter: contrast(1.1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  100% {
    opacity: 1;
    filter: none;
    clip-path: none;
  }
}

#taskbar-preview-popup .taskbar-preview-thumb {
  width: 170px;
  height: 105px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.taskbar-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #fff;
  gap: 8px;
}

.taskbar-preview-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-preview-close {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.taskbar-preview-close:hover {
  background: #ef4444;
  color: #fff;
}

.taskbar-preview-thumb {
  width: 190px;
  height: 120px;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.taskbar-preview-thumb:hover {
  border-color: #0078d4;
  box-shadow: 0 0 12px rgba(0, 120, 212, 0.6);
}

/* Mini Thumbnail Previews for each App */
.mini-preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 8px;
  overflow: hidden;
}

/* Mini Word Preview */
.mini-preview-word {
  background: #fff;
  color: #1e293b;
  display: flex;
  flex-direction: column;
}
.mini-word-header {
  background: #2b579a;
  color: #fff;
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 600;
}
.mini-word-doc {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-word-title {
  font-size: 8px;
  font-weight: bold;
  color: #0f172a;
}
.mini-word-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 6.5px;
}
.mini-word-table th {
  background: #f1f5f9;
  padding: 2px 3px;
  text-align: left;
}
.mini-word-table td {
  padding: 2px 3px;
  border-bottom: 1px solid #f1f5f9;
}
.mini-badge-crit {
  background: #ef4444;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: bold;
}
.mini-badge-high {
  background: #f97316;
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: bold;
}

/* Mini Burp Preview */
.mini-preview-burp {
  background: #202020;
  color: #ddd;
}
.mini-burp-top {
  background: #ff6633;
  color: #fff;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 8px;
  display: flex;
  justify-content: space-between;
}
.mini-burp-body {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Mini Chrome Preview */
.mini-preview-chrome {
  background: #f1f3f4;
  color: #202124;
}
.mini-chrome-tab {
  background: #fff;
  padding: 2px 6px;
  font-size: 7.5px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  width: fit-content;
  margin-top: 2px;
  margin-left: 4px;
}
.mini-chrome-url {
  background: #fff;
  margin: 2px 4px;
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 7px;
  color: #1a73e8;
  border: 1px solid #dadce0;
}
.mini-chrome-body {
  padding: 6px;
  font-size: 7.5px;
}

/* Mini Task Manager Preview */
.mini-preview-taskmgr {
  background: #1e1e1e;
  color: #e0e0e0;
  padding: 6px;
}
.mini-cpu-graph {
  height: 40px;
  background: #0f172a;
  border: 1px solid #334155;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.mini-cpu-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85%;
  background: rgba(16, 185, 129, 0.25);
  border-top: 2px solid #10b981;
}

/* Windows Desktop Icons */
#desktop-grid {
  position: absolute;
  top: 36px;
  left: 12px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: calc(100vh - 80px);
  gap: 16px;
  z-index: 5;
}

.desktop-icon {
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 4px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.1s;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.desktop-icon.selected {
  background: rgba(0, 120, 212, 0.3);
  border: 1px solid rgba(0, 120, 212, 0.6);
}

.desktop-icon-img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.desktop-icon-title {
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 3px #000, 0 1px 1px #000;
  line-height: 1.2;
  word-break: break-word;
}

/* Windows Windows Container */
#windows-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--taskbar-height));
  pointer-events: none;
  z-index: 10;
}

.win-window {
  position: absolute;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  min-width: 320px;
  min-height: 200px;
  transition: box-shadow 0.2s;
}

.win-window.active {
  border-color: #0078d4;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.9);
  z-index: 20;
}

.win-titlebar {
  height: 32px;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  user-select: none;
  cursor: move;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.win-window.active .win-titlebar {
  background: #202020;
}

.win-titlebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-titlebar-title img, .win-titlebar-title svg {
  width: 16px;
  height: 16px;
}

.win-controls {
  display: flex;
  height: 100%;
  align-items: center;
}

.win-control-btn {
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.15s;
}

.win-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.win-control-btn.close:hover {
  background: #e81123;
  color: #fff;
}

.win-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #181818;
}

/* Burp Suite Pro Styling */
.burp-window {
  background: var(--burp-bg);
  color: var(--burp-text);
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.burp-menubar {
  height: 24px;
  background: #181b20;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
  border-bottom: 1px solid var(--burp-border);
}

.burp-tabs {
  display: flex;
  background: #181b20;
  border-bottom: 2px solid var(--burp-orange);
  padding: 0 4px;
}

.burp-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: all 0.15s;
}

.burp-tab.active {
  background: var(--burp-orange);
  color: #ffffff;
}

.burp-tab:hover:not(.active) {
  background: #2a303c;
  color: #f1f5f9;
}

.burp-subtabs {
  display: flex;
  align-items: center;
  background: #252b34;
  padding: 4px 8px;
  gap: 8px;
  border-bottom: 1px solid var(--burp-border);
}

.burp-send-btn {
  background: var(--burp-orange);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.burp-send-btn:hover {
  filter: brightness(1.1);
}

.burp-send-btn:disabled {
  background: #64748b;
  cursor: not-allowed;
}

.burp-target-url {
  flex: 1;
  background: #181b20;
  border: 1px solid var(--burp-border);
  color: #e2e8f0;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 12px;
  border-radius: 3px;
}

.burp-repeater-split {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 100px;
}

.burp-repeater-split > .burp-pane:first-child {
  width: 50%;
  flex: none;
  border-right: none;
}

.burp-repeater-split > .burp-pane:last-child {
  flex: 1;
  border-right: none;
}

.burp-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Burp Subwindow Splitters (Resizing with VDI Latency) */
.burp-splitter-v {
  width: 5px;
  background: #181b20;
  border-left: 1px solid #14171c;
  border-right: 1px solid #14171c;
  position: relative;
  z-index: 10;
  cursor: default; /* Deliberately default until remote latency packet updates cursor */
  flex-shrink: 0;
  user-select: none;
  transition: background 0.15s ease;
}

.burp-splitter-v:hover {
  background: #2b303c;
}

.burp-splitter-v.cursor-ready {
  cursor: col-resize !important;
  background: #ff6633;
}

.burp-splitter-h {
  height: 5px;
  background: #181b20;
  border-top: 1px solid #14171c;
  border-bottom: 1px solid #14171c;
  position: relative;
  z-index: 10;
  cursor: default; /* Deliberately default until remote latency packet updates cursor */
  flex-shrink: 0;
  user-select: none;
  transition: background 0.15s ease;
}

.burp-splitter-h:hover {
  background: #2b303c;
}

.burp-splitter-h.cursor-ready {
  cursor: row-resize !important;
  background: #ff6633;
}

.burp-pane-header {
  background: #222831;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--burp-border);
}

.burp-editor {
  flex: 1;
  background: #181b20;
  color: #38bdf8;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px;
  border: none;
  resize: none;
  outline: none;
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}

.burp-statusbar {
  height: 24px;
  background: #14171c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid var(--burp-border);
}

.burp-issues-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 1px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  animation: burpBlink 1.4s infinite;
}

.burp-issues-badge:hover {
  filter: brightness(1.2);
}

@keyframes burpBlink {
  0%, 100% { background: rgba(239, 68, 68, 0.25); border-color: #ef4444; color: #fca5a5; }
  50% { background: rgba(245, 158, 11, 0.25); border-color: #f59e0b; color: #fcd34d; }
}

/* Burp Bottom Issue Activity Pane */
.burp-issue-activity {
  height: 220px;
  background: #181b20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.burp-issue-header {
  height: 24px;
  background: #21252d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 1px solid var(--burp-border);
}

.burp-issue-split {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.burp-issue-table-wrap {
  width: 55%;
  flex: none;
  overflow-y: auto;
  background: #14171c;
}

.burp-issue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: monospace;
}

.burp-issue-table th, .burp-issue-table td {
  padding: 4px 8px;
  text-align: left;
  border-bottom: 1px solid #222831;
  white-space: nowrap;
}

.burp-issue-table th {
  background: #1f232b;
  color: #94a3b8;
  position: sticky;
  top: 0;
  z-index: 2;
}

.burp-issue-row {
  cursor: pointer;
}

.burp-issue-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.burp-issue-row.active {
  background: rgba(255, 102, 51, 0.25) !important;
  color: #ffffff;
}

.burp-sev-high { color: #ef4444; font-weight: bold; }
.burp-sev-med { color: #f59e0b; font-weight: bold; }
.burp-sev-low { color: #38bdf8; }
.burp-sev-info { color: #94a3b8; }

.burp-issue-detail-pane {
  flex: 1;
  overflow-y: auto;
  background: #181b20;
  padding: 10px;
  font-size: 11px;
  color: #cbd5e1;
  position: relative;
}

.burp-skip-btn:hover {
  background: #475569;
  color: #fff;
}

.burp-mem-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.burp-mem-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 10px;
}

.burp-mem-btn:hover {
  background: var(--burp-orange);
  color: #fff;
}

/* Chrome Browser Styling */
.chrome-window {
  background: #f1f3f4;
  color: #202124;
}

.chrome-tabbar {
  height: 36px;
  background: #dee1e6;
  display: flex;
  align-items: flex-end;
  padding: 0 8px;
  gap: 4px;
}

.chrome-tab {
  background: #ffffff;
  padding: 6px 14px;
  font-size: 12px;
  color: #3c4043;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chrome-navbar {
  height: 38px;
  background: #ffffff;
  border-bottom: 1px solid #dadce0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
}

.chrome-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6368;
}

.chrome-nav-btn:hover {
  background: #f1f3f4;
}

.chrome-omnibox {
  flex: 1;
  height: 28px;
  background: #f1f3f4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: #202124;
  border: 1px solid transparent;
}

.chrome-omnibox:focus-within {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.chrome-omnibox input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  margin-left: 6px;
  font-family: inherit;
}

.chrome-webcontent {
  flex: 1;
  background: #ffffff;
  overflow: auto;
  padding: 24px;
  user-select: text;
  -webkit-user-select: text;
}

/* Task Manager Styling */
.taskmgr-window {
  background: #202020;
  color: #f1f1f1;
}

.taskmgr-tabs {
  display: flex;
  background: #181818;
  padding: 0 8px;
  border-bottom: 1px solid #333;
}

.taskmgr-tab {
  padding: 6px 16px;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.taskmgr-tab.active {
  color: #fff;
  border-bottom-color: #0078d4;
}

.taskmgr-grid {
  flex: 1;
  display: flex;
  padding: 12px;
  gap: 16px;
  overflow: hidden;
}

.taskmgr-sidebar {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taskmgr-metric-card {
  background: #282828;
  border: 1px solid #383838;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}

.taskmgr-metric-card.active {
  background: #1b3852;
  border-color: #0078d4;
}

.taskmgr-canvas-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taskmgr-canvas {
  width: 100%;
  height: 160px;
  background: #141414;
  border: 1px solid #333;
}

.taskmgr-processes {
  flex: 1;
  overflow: auto;
  border: 1px solid #333;
  background: #181818;
}

.taskmgr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.taskmgr-table th, .taskmgr-table td {
  padding: 5px 8px;
  text-align: left;
  border-bottom: 1px solid #282828;
}

.taskmgr-table th {
  background: #222;
  color: #888;
  position: sticky;
  top: 0;
}

/* Notepad / Scope */
.notepad-editor {
  flex: 1;
  background: #ffffff;
  color: #000000;
  font-family: 'Lucida Console', Monaco, monospace;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px;
  border: none;
  outline: none;
  resize: none;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
}

/* Windows Taskbar */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--taskbar-height);
  background: rgba(26, 32, 44, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 10000;
}

.taskbar-start {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}

.taskbar-start:hover {
  background: rgba(255, 255, 255, 0.1);
}

.taskbar-apps {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.taskbar-app-btn {
  height: 38px;
  min-width: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 11px;
  position: relative;
  transition: background 0.15s;
}

.taskbar-app-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.taskbar-app-btn.active {
  background: rgba(255, 255, 255, 0.15);
}

.taskbar-app-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--win-accent);
  border-radius: 2px;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.tray-clock {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

/* Citrix Disconnect Modal */
#citrix-disconnect-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.citrix-dialog {
  width: 460px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  animation: dialogPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.citrix-dialog-header {
  background: #002b49;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.citrix-dialog-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.citrix-reconnect-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.citrix-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #cbd5e1;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.citrix-dialog-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.citrix-dialog-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.citrix-dialog-actions {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Secret Presenter Mini Floating HUD (Ctrl+Shift+P) */
#presenter-mini-hud {
  position: absolute;
  bottom: 54px;
  right: 16px;
  width: 320px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
  padding: 12px;
  z-index: 999990;
  display: none;
  font-size: 12px;
  color: #e2e8f0;
}

.hud-title {
  font-weight: bold;
  color: #38bdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 4px;
}

.hud-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hud-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #fff;
  padding: 6px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.hud-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
}

.hud-btn.danger {
  background: #991b1b;
  border-color: #ef4444;
}

.hud-btn.danger:hover {
  background: #dc2626;
}

/* Window Resize Handles */
.win-resize-handle {
  position: absolute;
  z-index: 100;
}
.win-resize-handle.n { top: 0; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.win-resize-handle.s { bottom: 0; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.win-resize-handle.e { top: 8px; bottom: 8px; right: 0; width: 6px; cursor: e-resize; }
.win-resize-handle.w { top: 8px; bottom: 8px; left: 0; width: 6px; cursor: w-resize; }
.win-resize-handle.nw { top: 0; left: 0; width: 10px; height: 10px; cursor: nw-resize; }
.win-resize-handle.ne { top: 0; right: 0; width: 10px; height: 10px; cursor: ne-resize; }
.win-resize-handle.sw { bottom: 0; left: 0; width: 10px; height: 10px; cursor: sw-resize; }
.win-resize-handle.se { bottom: 0; right: 0; width: 10px; height: 10px; cursor: se-resize; }

/* MS Word Pentest Report Editor */
.word-window {
  background: #f3f2f1;
  color: #201f1e;
}
.word-titlebar {
  background: #2b579a !important;
  color: #ffffff;
}
.word-titlebar .win-titlebar-title {
  color: #ffffff;
}
.word-ribbon-tabs {
  height: 28px;
  background: #2b579a;
  display: flex;
  padding: 0 12px;
  gap: 2px;
}
.word-ribbon-tab {
  padding: 4px 12px;
  font-size: 11px;
  color: #dbe4f3;
  cursor: pointer;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.word-ribbon-tab.active {
  background: #f3f2f1;
  color: #2b579a;
  font-weight: 600;
}
.word-ribbon-toolbar {
  background: #f3f2f1;
  border-bottom: 1px solid #d2d0ce;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.word-btn {
  background: #ffffff;
  border: 1px solid #d2d0ce;
  border-radius: 3px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.word-btn:hover {
  background: #edebe9;
}
.word-canvas-wrapper {
  flex: 1;
  background: #e1dfdd;
  overflow: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
}
.word-page {
  width: 640px;
  min-height: 720px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 40px 48px;
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  color: #323130;
  outline: none;
}
.word-doc-title {
  font-size: 22px;
  font-weight: 700;
  color: #2b579a;
  margin-bottom: 4px;
}
.word-doc-subtitle {
  font-size: 13px;
  color: #605e5c;
  margin-bottom: 20px;
  border-bottom: 2px solid #2b579a;
  padding-bottom: 8px;
}
.word-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12px;
}
.word-table th, .word-table td {
  border: 1px solid #a19f9d;
  padding: 6px 10px;
}
.word-table th {
  background: #2b579a;
  color: #fff;
  text-align: left;
}
.word-badge-crit { background: #d13438; color: #fff; padding: 2px 6px; border-radius: 2px; font-weight: bold; }
.word-badge-high { background: #ea4335; color: #fff; padding: 2px 6px; border-radius: 2px; font-weight: bold; }
.word-badge-med { background: #ffaa44; color: #000; padding: 2px 6px; border-radius: 2px; font-weight: bold; }

/* Windows Alt+Tab Switcher Overlay */
#alttab-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}
.alttab-box {
  background: rgba(24, 24, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.9);
  max-width: 95vw;
  overflow-x: auto;
}
.alttab-item {
  width: 175px;
  height: 140px;
  background: #1e1e20;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.1s;
  box-sizing: border-box;
}
.alttab-item.selected {
  border-color: #0078d4;
  background: #1a2a40;
  box-shadow: 0 0 14px rgba(0, 120, 212, 0.7);
}
.alttab-item.committing {
  border-color: #0078d4 !important;
  background: #1a2a40 !important;
  box-shadow: 0 0 24px rgba(0, 120, 212, 0.95) !important;
  filter: brightness(1.2);
}
.alttab-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
}
.alttab-item-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.alttab-item-title {
  font-size: 11px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  font-weight: 500;
  text-align: left;
}
.alttab-item-thumb {
  flex: 1;
  border-radius: 3px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  height: 100px;
}
.alttab-box.stepping .alttab-item.selected {
  outline: 1px dashed rgba(255, 255, 255, 0.5);
}

/* Burp Click Queued Visual State */
.burp-issue-row.vdi-queued {
  background: rgba(56, 189, 248, 0.14) !important;
  outline: 1px dashed #38bdf8 !important;
}


/* Pentest Notebook Styling (JupyterLab / OneNote Scratchpad) */
.notebook-window {
  background: #1e1e1e;
  color: #cccccc;
}
.notebook-titlebar {
  background: #252526 !important;
}
.notebook-tabs {
  display: flex;
  background: #252526;
  border-bottom: 1px solid #333333;
  padding: 0 4px;
}
.nb-tab {
  padding: 6px 14px;
  font-size: 11px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
}
.nb-tab.active {
  color: #fff;
  background: #1e1e1e;
  border-bottom-color: #007acc;
}
.notebook-toolbar {
  height: 32px;
  background: #2d2d2d;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  border-bottom: 1px solid #383838;
}
.nb-btn {
  background: #3c3c3c;
  border: 1px solid #4a4a4a;
  color: #eee;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nb-btn:hover {
  background: #505050;
  color: #fff;
}
.nb-btn.run {
  background: #0e639c;
  border-color: #1177bb;
  font-weight: 600;
}
.nb-btn.run:hover {
  background: #1177bb;
}
.notebook-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #181818;
}
.notebook-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notebook-cell {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
}
.notebook-cell-header {
  background: #252526;
  padding: 4px 10px;
  font-size: 11px;
  color: #888;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #2d2d2d;
}
.notebook-code-input {
  width: 100%;
  min-height: 120px;
  background: #181818;
  color: #9cdcfe;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px;
  border: none;
  outline: none;
  resize: vertical;
  white-space: pre;
}
.notebook-output {
  background: #141414;
  border-top: 1px solid #282828;
  padding: 10px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #cccccc;
}
.notebook-footer {
  height: 24px;
  background: #007acc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
  user-select: none;
}
