/* =====================================================================
   Omniscode Control Center - Windows XP Luna Master Stylesheet (v3.15.0)
   Faithful recreation of the iconic Windows XP "Luna" Blue theme.
   Wallpaper: Bliss SVG · UI: Luna Window, Taskbar, Start Menu, Welcome Screen
   Zero third-party runtime dependencies · Native CSS/SVG
   ===================================================================== */

:root {
  /* Windows XP Luna Palette */
  --xp-blue-dark: #0a246a;
  --xp-blue-main: #0055ea;
  --xp-blue-light: #3593ff;
  --xp-blue-title-end: #003dd7;
  --xp-taskbar-blue: #245edb;
  --xp-taskbar-glow: #3f8cf3;
  --xp-start-green-top: #388e3c;
  --xp-start-green-mid: #43a047;
  --xp-start-green-dark: #1b5e20;
  
  --xp-win-bg: #ece9d8;
  --xp-win-border: #0055ea;
  --xp-panel-border: #7f9db9;
  --xp-groove-border: #d4d0c8;
  --xp-highlight: #316ac5;
  
  --xp-text-main: #000000;
  --xp-text-muted: #555555;
  --xp-text-title: #003399;
  
  --status-ok: #2e7d32;
  --status-warn: #e65100;
  --status-err: #c62828;
  
  --font-xp: "Tahoma", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --taskbar-height: 34px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

input, textarea, pre, code {
  user-select: text;
}

/* Accessible focus styling */
:focus-visible {
  outline: 1px dotted #000000;
  outline-offset: 1px;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: var(--tg-viewport-height, 100dvh);
  background: var(--xp-win-bg);
  color: var(--xp-text-main);
  font-family: var(--font-xp);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* =====================================================================
   DASHBOARD AS DESKTOP (Windows XP Full-Screen Shell)
   ===================================================================== */
.xp-window {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--taskbar-height) + var(--safe-bottom));
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--xp-win-bg);
  display: flex;
  flex-direction: column;
  z-index: 20;
  box-sizing: border-box;
  overflow: hidden;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Window Title Bar */
.xp-titlebar {
  height: 30px;
  background: linear-gradient(180deg, #0a246a 0%, #0058ee 4%, #3593ff 6%, #288eff 8%, #127dff 10%, #036ffc 14%, #0262ee 20%, #0057e5 40%, #0054e3 90%, #003dd7 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  min-width: 0;
}

.xp-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.xp-win-title-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.xp-win-title-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 1px 1px 1px #0f1089;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.xp-title-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.xp-win-btn {
  width: 21px;
  height: 21px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-xp);
  line-height: 1;
  color: #ffffff;
  text-shadow: 1px 1px 1px #0a246a;
  background: linear-gradient(to bottom, #3c80f4 0%, #2767db 100%);
  border: 1px solid #1c4bb7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.xp-win-btn:hover {
  background: linear-gradient(to bottom, #4f91fb 0%, #3074ea 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.xp-win-btn:active {
  background: linear-gradient(to bottom, #1941a5 0%, #2050c8 100%);
  border: 1px solid #143585;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.6);
  transform: translate(1px, 1px);
}

.xp-win-btn.xp-btn-close {
  background: linear-gradient(180deg, #d32f2f 0%, #c62828 45%, #b71c1c 100%);
  border: 1px solid #8e0000;
  text-shadow: 1px 1px 1px #5c0000;
}

.xp-win-btn.xp-btn-close:hover {
  background: linear-gradient(180deg, #f44336 0%, #e53935 45%, #c62828 100%);
  filter: brightness(1.1);
  box-shadow: inset 0 1px 1px #ffcdd2, 0 1px 3px rgba(0, 0, 0, 0.4);
}

.xp-win-btn.xp-btn-close:active {
  background: linear-gradient(180deg, #7f0000 0%, #b71c1c 100%);
  border: 1px solid #5c0000;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.7);
  transform: translate(1px, 1px);
}

/* Classic Menu Bar */
.xp-menubar {
  background: var(--xp-win-bg);
  border-bottom: 1px solid var(--xp-groove-border);
  display: flex;
  align-items: center;
  padding: 3px 6px;
  gap: 2px;
  font-size: 11px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 #ffffff;
  overflow-x: auto;
  scrollbar-width: none;
}

.xp-menubar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 599px) {
  .xp-menubar {
    padding: 2px 3px;
    gap: 2px;
  }
  .xp-menu-item {
    padding: 2px 4px;
    font-size: 10.5px;
  }
  .xp-menu-telemetry {
    gap: 4px;
    font-size: 10px;
  }
  .xp-menu-refresh-btn {
    padding: 2px 5px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .xp-refresh-text {
    display: none;
  }
  .xp-menu-refresh-btn {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
  }
  .xp-menu-item {
    padding: 2px 3px;
    font-size: 10px;
  }
  .xp-menubar {
    padding: 2px 2px;
    gap: 1px;
  }
}

.xp-menu-item {
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  white-space: nowrap;
  user-select: none;
  font-family: var(--font-xp);
  font-size: 11px;
  color: #000000;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 85%, #dcd7c8 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.15s ease,
              color 0.15s ease,
              box-shadow 0.15s ease,
              transform 0.08s ease;
}

.xp-menu-item:hover {
  background: linear-gradient(180deg, #3d88ea 0%, #2062cc 50%, #164da8 100%);
  color: #ffffff;
  border-color: #164da8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.xp-menu-item:active {
  background: linear-gradient(180deg, #164da8 0%, #2062cc 50%, #3d88ea 100%);
  color: #ffffff;
  border-color: #0f3575;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.6);
  transform: translate(1px, 1px);
}

.xp-menu-spacer {
  flex: 1;
}

.xp-menu-telemetry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex-shrink: 0;
  white-space: nowrap;
}

.xp-menu-refresh-btn {
  background: linear-gradient(180deg, #ffffff 0%, #ecebe5 86%, #d8d0c4 100%);
  border: 1px solid #003c74;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--font-xp);
  cursor: pointer;
  box-shadow: inset 0 0 1px 1px #ffffff;
  white-space: nowrap;
}

.xp-menu-refresh-btn:hover {
  box-shadow: inset 0 0 2px 1px #e3a638, 0 0 3px #ffe7a2;
}

.xp-menu-refresh-btn:active {
  background: linear-gradient(180deg, #dbcfbf 0%, #e6dccf 14%, #f3eee6 100%);
}

/* Status Indicator Dot & Pulse (Active Only During Update) */
.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 3px rgba(16, 185, 129, 0.4);
}

.status-label {
  font-size: 11px;
  color: #333333;
}

@keyframes liveUpdatingPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.85);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-pulse-dot.updating {
  animation: liveUpdatingPulse 0.7s ease-in-out infinite;
  background-color: #00f5a0;
}

/* Desktop Navigation Floating Arrows - Hidden for authentic desktop window */
.desktop-nav-arrow {
  display: none !important;
}

/* Window Body Viewport */
.xp-window-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--xp-win-bg);
  display: flex;
  min-height: 0;
  min-width: 0;
}

.screens-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screens-slider::-webkit-scrollbar {
  display: none;
}

.screen-page {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 20px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scroll-snap-align: start;
  scrollbar-width: auto;
}

@media (max-width: 600px) {
  .screen-page {
    padding: 8px 8px 16px;
    scrollbar-width: thin;
  }
}

/* Custom Windows XP Scrollbars */
.screen-page::-webkit-scrollbar,
.xp-terminal::-webkit-scrollbar,
.xp-taskbar-tasks::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .screen-page::-webkit-scrollbar,
  .xp-terminal::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}

.screen-page::-webkit-scrollbar-track,
.xp-terminal::-webkit-scrollbar-track,
.xp-taskbar-tasks::-webkit-scrollbar-track {
  background: #ece9d8;
  border: 1px solid #d4d0c8;
}

.screen-page::-webkit-scrollbar-thumb,
.xp-terminal::-webkit-scrollbar-thumb,
.xp-taskbar-tasks::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffffff 0%, #ecebe5 86%, #d8d0c4 100%);
  border: 1px solid #7f9db9;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.8);
}

.screen-page::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #dbcfbf 0%, #e6dccf 14%, #f3eee6 100%);
}

.page-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.desktop-two-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 900px) {
  .desktop-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
}

.desktop-col-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

/* Window Status Bar */
.xp-statusbar {
  min-height: 22px;
  background: var(--xp-win-bg);
  border-top: 1px solid var(--xp-groove-border);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
  font-size: 11px;
  color: #222222;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 #ffffff;
  box-sizing: border-box;
}

.xp-status-field {
  padding: 1px 8px;
  border: 1px inset #d4d0c8;
  background: #ece9d8;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-xp);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  box-sizing: border-box;
}

.xp-status-field.xp-status-main {
  flex: 1.5;
  min-width: 140px;
}

#statusUptimeText {
  flex: 1;
  min-width: 110px;
  justify-content: center;
  text-align: center;
}

#statusMetricsText {
  flex: 1.3;
  min-width: 150px;
  justify-content: flex-end;
  text-align: right;
}

/* =====================================================================
   CARDS & GROUPBOXES (Windows XP Style)
   ===================================================================== */
.card {
  background: #ffffff;
  border: 2px groove var(--xp-groove-border);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 1px 1px 0 #ffffff;
  color: var(--xp-text-main);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

@media (max-width: 500px) {
  .card {
    padding: 10px 10px;
  }
}

.page-section-header {
  margin: 4px 0 2px;
}

.page-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--xp-text-title);
}

.page-section-sub {
  font-size: 11px;
  color: var(--xp-text-muted);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid #ebe8db;
  padding-bottom: 4px;
  min-width: 0;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--xp-text-title);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid var(--xp-panel-border);
  background: #f0f0f0;
  flex-shrink: 0;
}

.card-tag.tag-ok {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.card-tag.tag-warn {
  background: #fff8e1;
  border-color: #f57f17;
  color: #e65100;
}

.card-tag.tag-err {
  background: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}

.info-rows-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-bottom: 1px dotted #e0e0e0;
  font-size: 11px;
  gap: 8px;
  min-width: 0;
}

.info-label {
  color: #555555;
  flex-shrink: 0;
}

.info-value {
  color: #000000;
  text-align: right;
  word-break: break-word;
  min-width: 0;
}

.font-bold { font-weight: 700; }
.font-mono { font-family: "Consolas", "Courier New", monospace; }
.text-blue { color: var(--xp-text-title); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.card-big-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--xp-text-title);
  margin: 4px 0;
  font-family: var(--font-xp);
}

/* Segmented Green Progress Bar (Windows XP Classic) */
.progress-bar-wrap {
  background: #ffffff;
  border: 1px solid var(--xp-panel-border);
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.25);
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  padding: 1px;
  margin: 6px 0;
}

.progress-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.3s ease;
  background: repeating-linear-gradient(
    to right,
    #22b14c 0px,
    #22b14c 7px,
    #ffffff 7px,
    #ffffff 9px
  );
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.8), inset 0 -2px 2px rgba(0,0,0,0.25);
}

.per-core-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
  width: 100%;
}

.cpu-core-pill, .core-pill {
  flex: 1 1 calc(25% - 4px);
  min-width: 58px;
  background: #f6fbf6;
  border: 1px solid var(--xp-panel-border);
  padding: 2px 4px;
  font-size: 10px;
  text-align: center;
  border-radius: 2px;
  color: #1b5e20;
  font-weight: 700;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}

.core-pill.hot {
  background: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}

.card-sub-meta {
  font-size: 11px;
  color: #555555;
  margin-top: 4px;
  word-break: break-word;
  white-space: normal;
}

/* =====================================================================
   BUTTONS & FORM CONTROLS (Windows XP Luna Style)
   ===================================================================== */
button, .btn {
  background: linear-gradient(180deg, #ffffff 0%, #ecebe5 86%, #d8d0c4 100%);
  border: 1px solid #003c74;
  border-radius: 3px;
  box-shadow: inset 0 0 1px 1px #ffffff;
  color: #000000;
  font-family: var(--font-xp);
  font-size: 11px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.3;
}

button:hover, .btn:hover {
  box-shadow: inset 0 0 2px 1px #e3a638, 0 0 3px #ffe7a2;
}

button:active, .btn:active {
  background: linear-gradient(180deg, #dbcfbf 0%, #e6dccf 14%, #f3eee6 100%);
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.3);
}

.btn-primary, .xp-btn-default {
  border: 2px solid #003c74;
  font-weight: 700;
}

.form-input, .xp-input, select, .settings-select {
  background: #ffffff;
  border: 2px inset var(--xp-panel-border);
  border-radius: 2px;
  padding: 4px 6px;
  font-family: var(--font-xp);
  font-size: 11px;
  color: #000000;
  box-sizing: border-box;
}

.form-input:focus, .xp-input:focus, select:focus {
  outline: none;
  border-color: var(--xp-blue-main);
  box-shadow: 0 0 3px rgba(0, 85, 234, 0.5);
}

/* =====================================================================
   TABLES (Services, Ports, Processes, PM2)
   ===================================================================== */
.table-responsive-wrap, .table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--xp-panel-border);
  background: #ffffff;
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: #ffffff;
}

th {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  border-right: 1px solid #d4d0c8;
  border-bottom: 1px solid #7f9db9;
  padding: 5px 8px;
  text-align: left;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

td {
  padding: 4px 8px;
  border-bottom: 1px solid #eeeeee;
  border-right: 1px solid #f6f6f6;
  color: #000000;
  white-space: nowrap;
}

tr:nth-child(even) td {
  background: #fbfbfa;
}

tr:hover td {
  background: var(--xp-highlight);
  color: #ffffff !important;
}

tr:hover td a, tr:hover td span {
  color: #ffffff !important;
}

.table-status-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #999;
}

.pill-active, .pill-open {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.pill-inactive, .pill-closed {
  background: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}

/* Tab buttons for sub-tables */
.tab-pills-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.tab-pill {
  padding: 4px 10px;
  border: 1px solid var(--xp-panel-border);
  background: #ece9d8;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
}

.tab-pill.active {
  background: #ffffff;
  border-bottom: 1px solid #ffffff;
  color: var(--xp-text-title);
}

/* =====================================================================
   ADDITIONAL COMPONENT STYLES & LAYOUT ENHANCEMENTS
   ===================================================================== */

/* Network Flow Pills */
.net-flow-row {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}

.net-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--xp-panel-border);
  background: #fbfbfa;
}

.net-pill.rx {
  color: #1b5e20;
  border-color: #a5d6a7;
  background: #f1f8e9;
}

.net-pill.tx {
  color: #0d47a1;
  border-color: #90caf9;
  background: #e3f2fd;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #7f9db9;
  background: #f0f0f0;
  color: #333333;
  white-space: nowrap;
}

.status-pill.status-online, .status-pill.status-open {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.status-pill.status-stopped, .status-pill.status-closed {
  background: #ffebee;
  border-color: #c62828;
  color: #b71c1c;
}

.status-pill.status-local {
  background: #e3f2fd;
  border-color: #1565c0;
  color: #0d47a1;
}

.status-pill.status-errored {
  background: #fff3e0;
  border-color: #e65100;
  color: #bf360c;
}

/* TCP Connections Grid */
.tcp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.tcp-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: #fbfbfa;
  border: 1px inset #d4d0c8;
  border-radius: 2px;
  text-align: center;
}

.tcp-stat-val {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-xp);
}

.tcp-stat-lbl {
  font-size: 10px;
  color: #666666;
  margin-top: 2px;
}

/* Linux Users List */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.user-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px dotted #e0e0e0;
  gap: 8px;
  flex-wrap: wrap;
}

.user-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.user-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #245edb 0%, #0d348a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.user-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--xp-text-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-sub {
  font-size: 11px;
  color: var(--xp-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-session-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  background: #e8f5e9;
  border: 1px solid #2e7d32;
  color: #1b5e20;
  flex-shrink: 0;
}

/* Websites & SSL Certificates Grid */
.ssl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ssl-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
}

.ssl-domain-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--xp-text-title);
  word-break: break-all;
}

.ssl-days-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
  border: 1px solid var(--xp-panel-border);
}

.ssl-expiry-date {
  font-size: 11px;
  color: #666666;
}

/* PM2 Processes List */
.pm2-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.proc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
}

.proc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.proc-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--xp-text-title);
  word-break: break-all;
}

.proc-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #444444;
  background: #fbfbfa;
  padding: 6px 8px;
  border: 1px inset #e0e0e0;
  border-radius: 2px;
}

.proc-stat strong {
  color: #000000;
}

.proc-actions-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-proc-action {
  padding: 3px 8px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 3px;
}

/* 24h Metrics History Chart */
.chart-container {
  width: 100%;
  height: 180px;
  background: #000000;
  border: 2px inset var(--xp-panel-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin: 6px 0 8px;
}

.history-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-legend-row {
  display: flex;
  gap: 14px;
  font-size: 11px;
  align-items: center;
  margin-top: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.cpu-dot {
  background: #00f5a0;
  box-shadow: 0 0 4px #00f5a0;
}

.ram-dot {
  background: #2563eb;
  box-shadow: 0 0 4px #2563eb;
}

/* Top Processes Tab & Compact Table */
.tab-toggle {
  display: flex;
  gap: 2px;
  background: #d4d0c8;
  padding: 2px;
  border-radius: 3px;
  border: 1px inset #999999;
}

.tab-btn {
  padding: 2px 8px;
  font-size: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 700;
  box-shadow: none;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--xp-blue-dark);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.compact-table th, .compact-table td {
  padding: 4px 6px;
  font-size: 11px;
}

/* Profile Screen Components */
.profile-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid #ebe8db;
  margin-bottom: 10px;
}

.profile-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.profile-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #245edb 0%, #153e9a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.profile-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

.profile-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-display-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--xp-text-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email-sub {
  font-size: 11px;
  color: var(--xp-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Settings List Rows */
.settings-rows-wrap {
  display: flex;
  flex-direction: column;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px dotted #e0e0e0;
  min-height: 38px;
  gap: 8px;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 12px;
  min-width: 0;
}

.settings-row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.settings-row.interactive {
  cursor: pointer;
  transition: background 0.1s ease;
  border-radius: 2px;
}

.settings-row.interactive:hover {
  background: #f0f4f9;
}

.settings-name {
  color: #000000;
}

.settings-val {
  font-size: 11px;
  font-weight: 600;
}

.chevron {
  font-size: 16px;
  color: #999999;
  line-height: 1;
}

.text-danger {
  color: #c62828 !important;
}

.text-mint {
  color: #10b981;
}

/* Responsive Enhancements for Small Screens (Tablets & Phones) */
@media (max-width: 768px) {
  .page-content-wrapper {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .tcp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ssl-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .ssl-card {
    padding: 6px 8px;
    gap: 4px;
  }
  .ssl-domain-name {
    font-size: 11px;
  }
  .ssl-meta-row {
    font-size: 10px;
  }
  .card-big-value {
    font-size: 20px;
  }
}

@media (max-width: 440px) {
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .info-value {
    text-align: left;
  }
  .xp-statusbar {
    height: auto;
    min-height: 24px;
    padding: 3px 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  .xp-status-field.xp-status-main {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
  }
  .xp-status-field {
    height: 19px;
    line-height: 19px;
    font-size: 10px;
    padding: 0 4px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .xp-status-field {
    font-size: 9px;
    padding: 0 2px;
  }
}

/* =====================================================================
   WINDOWS XP TASKBAR
   ===================================================================== */
.floating-dock.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--taskbar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #245edb 92%, #1941a5 100%);
  border-top: 1px solid #3f8cf3;
  display: flex;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.3);
  padding-right: 0;
}

/* Start Button */
.xp-start-btn {
  height: var(--taskbar-height);
  background: linear-gradient(180deg, #3ea243 0%, #46ad4b 14%, #388e3c 45%, #2a722e 85%, #1e5a22 100%);
  border: none;
  border-radius: 0 10px 10px 0;
  padding: 0 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px #a4e4a7, 1px 1px 3px rgba(0,0,0,0.4);
  flex-shrink: 0;
  transition: filter 0.15s ease, background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  user-select: none;
}

.xp-start-btn:hover {
  background: linear-gradient(180deg, #4dc452 0%, #54ce59 14%, #3ea243 45%, #328737 85%, #236827 100%);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 2px #d2fbd4, 1px 1px 4px rgba(0,0,0,0.5);
}

.xp-start-btn:active {
  background: linear-gradient(180deg, #184e1b 0%, #256a29 50%, #2e7d32 100%);
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.7);
  transform: translate(1px, 1px);
}

.xp-start-text {
  color: #ffffff;
  font-style: italic;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  font-family: var(--font-xp);
  line-height: 1;
}

/* Taskbar tasks container */
.xp-taskbar-tasks {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.xp-taskbar-tasks::-webkit-scrollbar {
  display: none;
}

.dock-btn {
  height: 26px;
  min-width: 70px;
  max-width: 150px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-xp);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #3c80f4 0%, #2767db 100%);
  border: 1px solid #1c4bb7;
  color: #ffffff;
  text-shadow: 1px 1px 1px #0a246a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.dock-btn:hover {
  background: linear-gradient(to bottom, #4f91fb 0%, #3074ea 100%);
}

.dock-btn.active {
  background: linear-gradient(to bottom, #1941a5 0%, #2050c8 100%);
  border: 1px solid #143585;
  color: #ffffff;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.6);
  font-weight: 700;
}

.dock-xp-icon {
  font-size: 12px;
}

.dock-label {
  font-size: 11px;
  color: inherit;
}

/* =====================================================================
   WINDOWS XP TASKBAR RIGHT EDGE & LOGOFF ACTION
   ===================================================================== */
.xp-taskbar-right {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
  background: linear-gradient(180deg, #0c59b2 0%, #166ae0 12%, #09479b 100%);
  border-left: 1px solid #14448e;
  box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.xp-taskbar-logoff-btn {
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #d32f2f 0%, #c62828 45%, #b71c1c 100%);
  border: 1px solid #8e0000;
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--font-xp);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: filter 0.15s ease, background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  user-select: none;
}

.xp-taskbar-logoff-btn:hover {
  background: linear-gradient(180deg, #f44336 0%, #e53935 45%, #c62828 100%);
  filter: brightness(1.1);
  box-shadow: inset 0 1px 1px #ffcdd2, 0 1px 3px rgba(0, 0, 0, 0.4);
}

.xp-taskbar-logoff-btn:active {
  background: linear-gradient(180deg, #7f0000 0%, #b71c1c 100%);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.7);
  transform: translate(1px, 1px);
}

@media (max-width: 600px) {
  .xp-logoff-extra {
    display: none;
  }
  .xp-taskbar-tasks {
    gap: 2px;
    padding: 0 2px;
  }
  .xp-start-btn {
    padding: 0 7px 0 5px;
    gap: 4px;
  }
  .xp-start-text {
    font-size: 12px;
  }
  .dock-btn {
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
    padding: 0 4px;
    font-size: 11px;
    justify-content: center;
  }
  .dock-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .xp-taskbar-right {
    padding: 0 4px;
  }
  .xp-taskbar-logoff-btn {
    padding: 0 8px;
    font-size: 11px;
    flex-shrink: 0;
  }
}

@media (max-width: 360px) {
  .xp-start-btn {
    padding: 0 4px 0 3px;
    border-radius: 0 6px 6px 0;
  }
  .xp-start-btn svg {
    width: 14px;
    height: 14px;
  }
  .xp-start-text {
    font-size: 11px;
  }
  .dock-btn {
    padding: 0 2px;
    font-size: 10px;
  }
  .xp-taskbar-right {
    padding: 0 2px;
  }
  .xp-taskbar-logoff-btn {
    padding: 0 6px;
    font-size: 10px;
  }
}

/* =====================================================================
   WINDOWS XP WELCOME SCREEN (Auth Screen)
   ===================================================================== */
.auth-overlay.hidden,
.hidden {
  display: none !important;
  pointer-events: none !important;
}

.xp-welcome-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  background: linear-gradient(to right, #002664 0%, #003399 50%, #002664 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-xp);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.xp-welcome-top-bar {
  height: 52px;
  background: #001740;
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
}

.xp-welcome-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.xp-welcome-brand-text {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  min-width: 0;
  max-width: 100%;
}

.xp-welcome-orange-line {
  height: 2px;
  background: linear-gradient(to right, #001740 0%, #e67e22 30%, #e67e22 70%, #001740 100%);
  box-shadow: 0 0 6px #e67e22;
  flex-shrink: 0;
}

.xp-welcome-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 36px;
  flex-wrap: wrap;
}

.xp-welcome-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 320px;
}

.xp-welcome-title {
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
}

.xp-sub {
  color: #ff9900;
  font-size: 26px;
  margin-left: 2px;
}

.xp-welcome-desc {
  color: #c0ccee;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}

.xp-welcome-divider {
  width: 1px;
  height: 240px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0.5) 70%, transparent 100%);
}

.xp-welcome-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xp-user-tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.xp-user-avatar-frame {
  width: 58px;
  height: 58px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.xp-user-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.xp-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.xp-label {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.xp-pw-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.xp-input {
  max-width: 220px;
}

.xp-btn-go {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
  border: 1px solid #1b5e20;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 1px #81c784, 0 1px 3px rgba(0,0,0,0.3);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  flex-shrink: 0;
}

.xp-btn-go:hover {
  background: linear-gradient(180deg, #66bb6a 0%, #388e3c 100%);
}

.xp-pw-toggle-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  padding: 2px 4px;
  box-shadow: none;
  cursor: pointer;
}

.xp-auth-options {
  margin-top: 4px;
}

.remember-label {
  color: #ffffff;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.xp-welcome-bottom-bar {
  height: 24px;
  background: #001740;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .xp-welcome-top-bar {
    height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .xp-welcome-brand {
    max-width: 100%;
    overflow: hidden;
  }
  .xp-welcome-brand-text {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 44px);
  }
  .xp-welcome-center {
    flex-direction: column;
    gap: 16px;
    padding: 16px 8px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .xp-welcome-divider {
    display: none;
  }
  .xp-welcome-left {
    align-items: center;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
  }
  .xp-welcome-title {
    font-size: 26px;
  }
  .xp-sub {
    font-size: 20px;
  }
  .xp-welcome-desc {
    max-width: 290px;
    text-align: center;
    font-size: 11px;
    box-sizing: border-box;
  }
  .xp-welcome-right {
    width: 100%;
    max-width: 300px;
    align-items: center;
    box-sizing: border-box;
    padding: 0 4px;
  }
  .xp-user-tile {
    gap: 10px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .xp-user-avatar-frame {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }
  .xp-user-fields {
    flex: 1;
    min-width: 0;
    max-width: 220px;
  }
  .xp-pw-wrap {
    width: 100%;
    min-width: 0;
    gap: 4px;
  }
  .xp-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 4px 6px;
  }
  .xp-welcome-bottom-bar {
    height: 18px;
  }
}

/* =====================================================================
   MODALS IN WINDOWS XP DIALOG STYLE
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.xp-dialog {
  background: var(--xp-win-bg);
  border: 3px solid var(--xp-win-border);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  max-width: 650px;
  width: calc(100% - 20px);
  margin: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xp-dialog-header {
  height: 28px;
  background: linear-gradient(180deg, #0a246a 0%, #0058ee 6%, #0054e3 90%, #003dd7 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-shadow: 1px 1px 1px #0f1089;
}

.xp-dialog-close {
  width: 19px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e7674e 0%, #be270d 100%);
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.xp-dialog-body {
  padding: 14px;
  font-size: 12px;
  color: var(--xp-text-main);
  background: var(--xp-win-bg);
  max-height: 70vh;
  overflow-y: auto;
}

.xp-terminal {
  background: #000000;
  color: #00ff66;
  font-family: "Lucida Console", "Consolas", monospace;
  font-size: 11px;
  padding: 10px;
  border: 2px inset var(--xp-panel-border);
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.4;
}

.xp-dialog-footer {
  padding: 8px 14px;
  background: var(--xp-win-bg);
  border-top: 1px solid var(--xp-groove-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* =====================================================================
   BALLOON TOOLTIPS (Windows XP Toasts)
   ===================================================================== */
.xp-balloon-container {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 8px);
  right: 14px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #ffffdf;
  border: 1px solid #000000;
  border-radius: 3px;
  padding: 8px 12px;
  color: #000000;
  font-size: 11px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  pointer-events: auto;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: xpBalloonPop 0.2s ease-out;
}

@keyframes xpBalloonPop {
  0% { transform: translateY(10px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.toast-icon {
  font-size: 16px;
}

.toast-message {
  font-size: 11px;
  line-height: 1.3;
}
