/* ==========================================================================
   Applications & Content Viewports (XP Explorer, Terminal, IE, WMP, Notepad)
   ========================================================================== */

/* App Content Area */
.app-content {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background-color: #ffffff;
  color: #111;
  font-family: var(--font-system);
}

/* 1. Notepad Style */
.app-notepad-view {
  width: 100%;
  height: 100%;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  background-color: #fff;
  outline: none;
  border: none;
  resize: none;
  overflow-y: auto;
}

/* 2. Explorer Folder & My Computer Style */
.explorer-window-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
}

.explorer-toolbar {
  height: 38px;
  background: linear-gradient(180deg, #f7f6f0 0%, #ece9d8 100%);
  border-bottom: 1px solid #d0ccb8;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
  font-size: 11px;
}

.exp-tool-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-system);
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}

.exp-tool-btn:hover:not([disabled]) {
  background-color: #fff;
  border-color: #7f9db9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.exp-tool-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.exp-tool-divider {
  width: 1px;
  height: 22px;
  background-color: #d0ccb8;
  margin: 0 4px;
}

.exp-address-bar-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.exp-address-label {
  color: #555;
  font-size: 11px;
}

.exp-address-input {
  flex: 1;
  height: 20px;
  padding: 0 6px;
  border: 1px solid #7f9db9;
  font-family: var(--font-system);
  font-size: 11px;
  background-color: #fff;
}

.exp-go-btn {
  padding: 2px 8px;
  height: 20px;
  background: #ece9d8;
  border: 1px solid #716f64;
  font-size: 11px;
  cursor: pointer;
}

.explorer-body-split {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.explorer-sidebar-pane {
  width: 190px;
  background: linear-gradient(180deg, #7ba2e7 0%, #6375d6 100%);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  border-right: 1px solid #4a6bb5;
}

.exp-sidebar-section {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.exp-section-header {
  background: linear-gradient(180deg, #2062dc 0%, #1545aa 100%);
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 4px 8px;
}

.exp-section-body {
  padding: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.exp-task-link {
  color: #003399;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
}

.exp-task-link:hover {
  color: #ff6600;
}

.explorer-files-pane {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #ffffff;
}

.exp-group-title {
  font-weight: bold;
  color: #003399;
  font-size: 11px;
  border-bottom: 1px solid #c9d8eb;
  padding-bottom: 3px;
  margin-bottom: 10px;
}

.exp-drives-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.exp-drive-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9d9d9;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #fafafa;
  min-width: 240px;
  transition: all 0.15s;
}

.exp-drive-card:hover {
  border-color: #0055ea;
  background-color: #f0f4ff;
  box-shadow: 0 2px 6px rgba(0, 85, 234, 0.2);
}

.exp-item-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.exp-drive-info {
  flex: 1;
}

.exp-drive-name {
  font-size: 12px;
  color: #000;
  margin-bottom: 4px;
}

.exp-drive-bar-bg {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #b0b0b0;
  margin-bottom: 4px;
}

.exp-drive-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0055ea, #3399ff);
}

.exp-drive-stats {
  font-size: 10px;
  color: #666;
}

.ou-easter-text {
  color: #0055ea;
  font-weight: bold;
}

.ou-badge-hint {
  font-size: 9px;
  color: #ff6600;
  margin-top: 2px;
  font-weight: bold;
}

/* Files in Explorer */
.exp-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 16px;
}

.exp-file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.exp-file-item:hover {
  background-color: #e8f0fe;
  border-color: #7f9db9;
}

.exp-file-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 4px;
}

.exp-file-name {
  font-size: 11px;
  word-break: break-word;
}

/* 3. Terminal (cmd.exe) Styling */
.terminal-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #000000;
  color: #cccccc;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.terminal-output {
  white-space: pre-wrap;
  word-break: break-all;
}

.term-line {
  margin-bottom: 2px;
}

.term-error {
  color: #ff4d4d;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.terminal-prompt {
  color: #00ff66;
  margin-right: 6px;
  /* A long path must wrap, or the row gets wider than the window and pushes text off-screen */
  white-space: normal;
  word-break: break-all;
  flex-shrink: 1;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0;
  min-width: 60px;
}

/* 4. MPCrosoft Explorer Browser (Tabbed Retro XP Shell - Matching User Reference 7) */
.xp-browser-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: #ece9d8;
  overflow: hidden;
}

/* Tabs Bar */
.browser-tabs-bar {
  height: 32px;
  background: linear-gradient(180deg, #0f52ba 0%, #083b99 100%);
  display: flex;
  align-items: flex-end;
  padding: 0 8px;
  gap: 6px;
  border-bottom: 1px solid #062b70;
  user-select: none;
}

.browser-tabs-left-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  margin-bottom: 4px;
}

.browser-tabs-list {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.browser-tabs-list::-webkit-scrollbar {
  display: none;
}

.browser-tab-item {
  height: 26px;
  padding: 0 10px;
  background: linear-gradient(180deg, #1b5cc2 0%, #0d3e9c 100%);
  color: #d2e2ff;
  border: 1px solid #3672d6;
  border-bottom: none;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  max-width: 180px;
  min-width: 100px;
  cursor: pointer;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.15);
}

.browser-tab-item.active {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  color: #111;
  font-weight: 600;
  border-color: #8da4c4;
  height: 28px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.25);
}

.tab-folder-icon {
  color: #ffaa00;
  font-size: 12px;
}

.tab-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 2px;
  border-radius: 2px;
}
.tab-close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.browser-new-tab-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #092f7a;
  border: 1px solid #2a58ad;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.browser-new-tab-btn:hover {
  background: #1144a8;
}

/* Nav Toolbar */
.browser-nav-toolbar {
  height: 38px;
  background: linear-gradient(180deg, #f7f6f0 0%, #ece9d8 100%);
  border-bottom: 1px solid #d0ccb8;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.nav-circle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #716f64;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.nav-circle-btn.btn-green {
  background: linear-gradient(180deg, #8fe054 0%, #46aa1d 50%, #2f7e13 100%);
  border-color: #23690d;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-size: 18px;
}
.nav-circle-btn.btn-green:hover {
  background: linear-gradient(180deg, #a4f268 0%, #53be24 50%, #379116 100%);
}

.nav-circle-btn.btn-refresh {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  border-color: #7f9db9;
  color: #333;
  font-size: 12px;
}
.nav-circle-btn.btn-refresh:hover {
  background: #fff;
}

.nav-external-btn {
  background: transparent;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  color: #003399;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
.nav-external-btn:hover {
  background: #ffffff;
}

/* Rounded Search Pill */
.browser-search-pill {
  flex: 1;
  display: flex;
  align-items: center;
  height: 26px;
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 14px;
  padding: 0 10px;
  gap: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.google-g-icon {
  font-size: 12px;
  color: #4285f4;
  display: flex;
  align-items: center;
}

.browser-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-system);
  font-size: 12px;
  color: #222;
  background: transparent;
}

.browser-search-go-btn {
  background: transparent;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
}
.browser-search-go-btn:hover {
  color: #0055ea;
}

.browser-throbber {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-throbber img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Bookmarks Bar */
.browser-bookmarks-bar {
  height: 26px;
  background: #f7f6f0;
  border-bottom: 1px solid #d0ccb8;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 14px;
  font-size: 11px;
}

.bookmark-grid-icon {
  color: #888;
  font-size: 10px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}
.bookmark-item:hover {
  background: #e2eaf5;
  color: #003399;
}

/* Viewport Area */
.browser-viewport-area {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  background-color: #ffffff;
}

.browser-iframes-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.browser-viewport-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 117.65% !important;
  height: 117.65% !important;
  transform: scale(0.85);
  transform-origin: 0 0;
  border: none;
  display: block;
}

.browser-viewport-iframe.tab-hidden {
  display: none !important;
}

/* Bottom Statusbar */
.browser-bottom-statusbar {
  height: 22px;
  background: #ece9d8;
  border-top: 1px solid #d0ccb8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
  color: #444;
}

.web-header {
  height: 60px;
  background: #002b80;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 3px solid #ff6600;
}

.web-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.web-site-name {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.web-site-desc {
  font-size: 10px;
  color: #c9dbfd;
}

.web-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.web-nav-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
}

.web-nav-item:hover {
  color: #ff9900;
}

.web-cta-btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.web-hero-banner {
  background: linear-gradient(135deg, #0045d0 0%, #001f5c 100%);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.web-hero-badge {
  display: inline-block;
  background: rgba(255, 102, 0, 0.25);
  border: 1px solid #ff6600;
  color: #ff9900;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.web-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.web-hero-subtitle {
  font-size: 13px;
  max-width: 580px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
  color: #d0e2ff;
}

.web-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.web-primary-btn {
  background: #ff6600;
  color: #fff;
  border: 2px solid #b34700;
  padding: 8px 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.web-secondary-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.web-section {
  padding: 24px;
}

.web-section-title {
  font-size: 16px;
  font-weight: bold;
  color: #003399;
  margin-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
}

.web-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.web-photo-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.web-photo-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.web-photo-caption {
  padding: 6px 8px;
  font-size: 10px;
  font-weight: bold;
  color: #333;
  background-color: #f9f9f9;
}

.web-footer {
  background-color: #1a1a1a;
  color: #888;
  padding: 16px;
  text-align: center;
  font-size: 11px;
}

/* 5. Windows Media Player 9/10 Series XP Luna Blue/Silver Skin */
[id="win-wmplayer.exe"] .window-body,
.window-container:has(.wmp-container) .window-body {
  overflow: hidden !important;
  background-color: #0b1a30;
}

.wmp-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #b0c8ea 0%, #87a7d6 20%, #577eae 60%, #3e6292 100%);
  color: #fff;
  overflow: hidden;
  user-select: none;
  font-family: var(--font-system);
}

/* Classic XP Top Menu Row */
.wmp-top-menubar {
  height: 22px;
  background: linear-gradient(180deg, #ece9d8 0%, #d8d4c0 100%);
  border-bottom: 1px solid #7f9db9;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #000;
  font-size: 11px;
  flex-shrink: 0;
}

.wmp-menu-btn {
  padding: 2px 6px;
  cursor: pointer;
}

.wmp-menu-btn:hover {
  background: #316ac5;
  color: #fff;
}

/* Main Split View: Left Nav, Center Player, Right Playlist */
.wmp-body-split {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 6px;
  gap: 6px;
}

/* Left Curved Blue Navigation Pane */
.wmp-left-nav {
  width: 115px;
  background: linear-gradient(180deg, #2458a6 0%, #153c7c 45%, #0b224d 100%);
  border: 1px solid #4a7ec5;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4), inset -1px -1px 2px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 4px 6px 4px;
  flex-shrink: 0;
}

.wmp-nav-tabs-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wmp-nav-tab {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: #b5d5ff;
  font-weight: 500;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}

.wmp-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.wmp-nav-tab.active {
  background: linear-gradient(180deg, #3895ff 0%, #1c6edb 50%, #0d4fa8 100%);
  color: #ffffff;
  font-weight: bold;
  border: 1px solid #71adff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Left Bottom XP Branding */
.wmp-left-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wmp-xp-flag {
  display: grid;
  grid-template-columns: 7px 7px;
  gap: 1px;
}

.wmp-flag-dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
}

.wmp-brand-text {
  font-size: 9px;
  line-height: 1.1;
  color: #c7defa;
  font-weight: bold;
}

/* Center Display Pane */
.wmp-center-display {
  flex: 1;
  min-width: 0;
  background: #000000;
  border: 1px solid #1a3a68;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

/* Now Playing Title Banner */
.wmp-now-playing-banner {
  height: 44px;
  background: linear-gradient(180deg, #111b29 0%, #080d14 100%);
  border-bottom: 1px solid #222;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
}

.wmp-artist-name {
  font-size: 11px;
  color: #8bb8ea;
}

.wmp-track-title {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Video / Visualization Viewport */
.wmp-viewport-screen {
  flex: 1 1 0%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmp-video-elem {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  background-color: #000000;
  z-index: 2;
}

.wmp-viz-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}

/* Bottom Strip of Viewport: Ambience & Album */
.wmp-viewport-bottom-bar {
  height: 38px;
  background: linear-gradient(180deg, #0b1118 0%, #030508 100%);
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 10px;
  color: #aaa;
  z-index: 10;
  flex-shrink: 0;
}

.wmp-ambience-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wmp-amb-btn {
  background: #182536;
  border: 1px solid #334a68;
  color: #ccc;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
}

.wmp-album-tag {
  color: #71ff71;
  font-family: var(--font-system);
}

/* Right Playlist Sidebar */
.wmp-playlist-sidebar {
  width: 190px;
  background: #000000;
  border: 1px solid #1a3a68;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.wmp-playlist-dropdown-header {
  height: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  border-bottom: 1px solid #7f9db9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: #000;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
  flex-shrink: 0;
}

.wmp-playlist-list {
  flex: 1;
  overflow-y: auto;
  background-color: #000000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wmp-playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 11px;
  color: #ccc;
  cursor: pointer;
  border-radius: 2px;
}

.wmp-playlist-item:hover {
  background: #11284d;
  color: #fff;
}

.wmp-playlist-item.active {
  background: #003366;
  color: #66ff66;
  font-weight: bold;
}

.wmp-playlist-item.active .wmp-pl-dot {
  color: #00ff00;
  display: inline-block;
  margin-right: 4px;
}

.wmp-playlist-footer {
  height: 22px;
  background: #0c1624;
  border-top: 1px solid #1a3a68;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  font-size: 10px;
  color: #888;
  flex-shrink: 0;
}

/* Bottom Glossy Silver-Blue Curved Pill Control Deck */
.wmp-bottom-deck {
  height: 60px;
  background: linear-gradient(180deg, #cde0f8 0%, #9cbce6 15%, #668fc4 45%, #426ea6 75%, #5a85be 100%);
  border-top: 1px solid #ffffff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 -2px 6px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Circular Glossy 3D Play Button */
.wmp-circle-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5db2ff 0%, #1e7be6 50%, #0d4ea3 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.8);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s, filter 0.15s;
}

.wmp-circle-play-btn:hover {
  filter: brightness(1.15);
}

.wmp-circle-play-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.wmp-deck-btns {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wmp-chrome-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f7f9fd 0%, #bdcde3 100%);
  border: 1px solid #4a6894;
  color: #173866;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 2px rgba(0,0,0,0.2);
}

.wmp-chrome-btn:hover {
  background: #ffffff;
}

/* Green Glowing Seeker Track */
.wmp-seeker-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wmp-seeker-groove {
  height: 6px;
  background-color: #0b1420;
  border: 1px solid #334d70;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 1px 2px #000;
  overflow: hidden;
}

.wmp-seeker-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bb00 0%, #33ff33 100%);
  box-shadow: 0 0 6px #33ff33;
  width: 0%;
}

/* Bright Green Digital Clock */
.wmp-green-lcd-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  color: #00ff00;
  background: #000000;
  padding: 2px 6px;
  border: 1px solid #334d70;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
  flex-shrink: 0;
}

/* Volume Slider in Deck */
.wmp-volume-deck {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wmp-vol-range {
  width: 60px;
  height: 5px;
  cursor: pointer;
}

/* ==========================================================================
   6. Windows Task Manager (taskmgr.exe) & BSOD Easter Egg Styling
   ========================================================================== */
.taskmgr-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ece9d8;
  font-family: var(--font-system);
  font-size: 11px;
  overflow: hidden;
}

.taskmgr-tabs-bar {
  display: flex;
  background-color: #ece9d8;
  padding: 4px 6px 0 6px;
  gap: 2px;
  border-bottom: 1px solid #7f9db9;
}

.taskmgr-tab-btn {
  padding: 3px 12px;
  font-size: 11px;
  font-family: var(--font-system);
  background: #ece9d8;
  border: 1px solid #7f9db9;
  border-bottom: none;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  cursor: pointer;
}

.taskmgr-tab-btn.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  font-weight: bold;
}

.taskmgr-body-panel {
  flex: 1;
  background-color: #fff;
  border: 1px solid #7f9db9;
  border-top: none;
  margin: 0 6px 6px 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tm-tab-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tm-table-header {
  display: flex;
  background: linear-gradient(180deg, #f7f6f0 0%, #ece9d8 100%);
  border: 1px solid #7f9db9;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 4px;
}

.tm-col {
  padding: 2px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-task { flex: 2; display: flex; align-items: center; gap: 6px; }
.col-status { flex: 1; }

.col-proc-name { flex: 2; display: flex; align-items: center; }
.col-proc-pid { width: 60px; text-align: right; }
.col-proc-cpu { width: 50px; text-align: right; }
.col-proc-mem { width: 90px; text-align: right; }

.tm-list-box {
  flex: 1;
  border: 1px solid #7f9db9;
  border-top: none;
  background-color: #fff;
  overflow-y: auto;
  min-height: 100px;
}

.tm-row-item {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.tm-row-item:hover {
  background-color: #e5f1fb;
}

.tm-row-item.selected {
  background-color: #316ac5;
  color: #fff;
}

.tm-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tm-empty-row {
  padding: 16px;
  text-align: center;
  color: #888;
}

.tm-btn-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.xp-dialog-btn {
  padding: 3px 12px;
  background: #ece9d8;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-system);
  font-size: 11px;
}

.xp-dialog-btn:hover:not([disabled]) {
  background: #f5f5f5;
  border-color: #316ac5;
}

.xp-dialog-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.taskmgr-statusbar {
  height: 20px;
  background-color: #ece9d8;
  border-top: 1px solid #7f9db9;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 10px;
  color: #333;
  gap: 16px;
}

/* Performance Tab */
.tm-perf-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  gap: 6px;
}

.tm-perf-grid {
  display: flex;
  gap: 8px;
}

.tm-perf-box {
  flex: 1;
  border: 1px solid #7f9db9;
  padding: 6px;
  background: #f7f6f0;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
}

.tm-perf-title {
  font-size: 10px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.tm-gauge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.tm-cpu-bar-container {
  width: 24px;
  height: 70px;
  background-color: #000;
  border: 1px solid #333;
  display: flex;
  flex-direction: column-reverse;
  padding: 1px;
}

.tm-cpu-bar-fill {
  background: linear-gradient(0deg, #00aa00, #00ff00);
  width: 100%;
  transition: height 0.3s;
}

.tm-cpu-val {
  font-size: 13px;
  font-weight: bold;
  color: #008800;
  font-family: var(--font-mono);
}

.tm-graph-canvas {
  width: 100%;
  height: 75px;
  display: block;
  background: #000;
  border: 1px solid #333;
}

.tm-stats-row {
  display: flex;
  gap: 8px;
}

.tm-stat-col {
  flex: 1;
}

.tm-fieldset {
  border: 1px solid #7f9db9;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 2px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tm-fieldset legend {
  padding: 0 4px;
  font-weight: bold;
}

/* ==========================================================================
   7. Blue Screen of Death (BSOD) Overlay
   ========================================================================== */
.xp-bsod-overlay {
  position: fixed;
  inset: 0;
  background-color: #0000aa;
  color: #ffffff;
  z-index: 999999;
  font-family: "Lucida Console", "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 40px;
  overflow: auto;
  user-select: none;
  cursor: default;
}

.bsod-content {
  max-width: 900px;
  margin: 0 auto;
}
