/* ==========================================================================
   AUTHENTIC WINDOWS 95 CSS DESIGN SYSTEM
   Pixel-perfect recreation of Windows 95 UI elements, bevels and controls
   ========================================================================== */

:root {
  --win-teal: #008080;
  --win-gray: #c0c0c0;
  --win-light: #ffffff;
  --win-light-gray: #dfdfdf;
  --win-dark-gray: #808080;
  --win-black: #000000;
  --win-navy: #000080;
  --win-navy-light: #1084d0;
  --win-yellow: #ffff00;
  --win-font: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, "Segoe UI", Arial, sans-serif;

  /* AUTHENTIC WINDOWS 95 PIXEL CURSORS */
  --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cpath d='M0 0 L0 15 L3.5 11.5 L6.5 18 L8.5 17 L5.5 10.5 L10.5 10.5 Z' fill='%23ffffff' stroke='%23000000' stroke-width='1' stroke-linejoin='miter'/%3E%3C/svg%3E"), default;
  --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M6 1 L6 10 L4.5 10 C3.5 10 3 10.5 3 11.5 L3 15 C3 18.5 6 21 10 21 C14 21 16.5 18 16.5 14 L16.5 9 C16.5 8 15.5 7.5 14.5 7.5 C14 7.5 13.5 8 13.5 8.5 L13.5 7 C13.5 6 12.5 5.5 11.5 5.5 C11 5.5 10.5 6 10.5 6.5 L10.5 5 C10.5 4 9.5 3.5 8.5 3.5 C8 3.5 7.5 4 7.5 4.5 L7.5 1 C7.5 0 6 0 6 1 Z' fill='%23ffffff' stroke='%23000000' stroke-width='1'/%3E%3C/svg%3E") 6 1, pointer;
  --cur-wait: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M2 1 H16 V4 L11 11 L16 18 V21 H2 V18 L7 11 L2 4 Z' fill='%23000080' stroke='%23000000' stroke-width='1'/%3E%3Cpath d='M4 3 H14 V4 L10 10 L14 17 V19 H4 V17 L8 10 L4 4 Z' fill='%2300ffff'/%3E%3Cpath d='M5 19 H13 L9 13 Z' fill='%23ffff00'/%3E%3C/svg%3E") 9 11, wait;
  --cur-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='19' viewBox='0 0 11 19'%3E%3Cpath d='M2 1 H9 M5.5 1 V18 M2 18 H9' stroke='%23000000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") 5 9, text;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  cursor: var(--cur-default);
}

button, a, .desktop-icon, .start-item, .win-menuitem, .win-control-btn, .task-button, .drive-item, .palette-swatch, .paint-tool-btn, .wallpaper-option, #start-button, input[type="radio"], input[type="checkbox"], input[type="range"] {
  cursor: var(--cur-pointer) !important;
}

textarea, input[type="text"] {
  cursor: var(--cur-text) !important;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--win-teal);
  font-family: var(--win-font);
  font-size: 11px;
  color: var(--win-black);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

/* Authentic Windows 95 Scrollbars */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background-color: #c0c0c0;
  background-image: repeating-linear-gradient(45deg, #ffffff 0, #ffffff 1px, #c0c0c0 0, #c0c0c0 2px);
}

::-webkit-scrollbar-thumb {
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
}

::-webkit-scrollbar-thumb:active {
  background-color: #d4d0c8;
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
}

::-webkit-scrollbar-button {
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
  width: 16px;
  height: 16px;
  display: block;
}

/* ==========================================================================
   3D BEVEL UTILITIES (Outset, Inset, Ridge, Groove)
   ========================================================================== */

.bevel-outset {
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
}

.bevel-inset {
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black),
              inset -1px -1px 0px var(--win-light-gray);
}

.bevel-well {
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  background-color: #ffffff;
}

.win-button {
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
  padding: 2px 10px;
  font-family: var(--win-font);
  font-size: 11px;
  color: var(--win-black);
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.win-button:active, .win-button.pressed {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-dark-gray);
  padding: 3px 9px 1px 11px; /* 1px shift */
}

/* ==========================================================================
   DESKTOP AREA
   ========================================================================== */

#desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 28px;
  overflow: hidden;
}

.desktop-icon {
  position: absolute;
  width: 74px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 4px 2px;
  border: 1px dotted transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.desktop-icon:hover {
  cursor: pointer;
}

.desktop-icon.selected {
  border: 1px dotted #ffff00;
}

.desktop-icon.selected .icon-label {
  background-color: var(--win-navy);
  color: var(--win-light);
}

.desktop-icon.dragging {
  opacity: 0.7;
  z-index: 1000;
  pointer-events: none;
}

.desktop-icon svg, .desktop-icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  margin-bottom: 4px;
  pointer-events: none;
}

.desktop-icon .icon-label {
  font-size: 11px;
  color: var(--win-light);
  text-shadow: 1px 1px 0px #000000;
  padding: 1px 3px;
  max-width: 72px;
  word-wrap: break-word;
  line-height: 12px;
  pointer-events: none;
}

.icon-label-input {
  font-family: var(--win-font);
  font-size: 11px;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  outline: none;
  padding: 0 2px;
  width: 70px;
  text-align: center;
}

/* Rubberband marquee selection box */
#selection-box {
  position: absolute;
  border: 1px dotted #ffffff;
  background-color: rgba(0, 0, 128, 0.2);
  display: none;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   TASKBAR & SYSTEM TRAY
   ========================================================================== */

#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 3px;
  z-index: 9999;
}

#start-button {
  height: 22px;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
  background-color: var(--win-gray);
  cursor: pointer;
}

#start-button.active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-dark-gray);
  padding: 3px 5px 1px 7px;
  background-color: #c0c0c0;
  background-image: repeating-conic-gradient(#ffffff 0% 25%, #c0c0c0 0% 50%);
  background-size: 2px 2px;
}

.taskbar-divider {
  width: 2px;
  height: 20px;
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  margin: 0 1px;
}

#task-buttons {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  height: 22px;
}

.task-button {
  width: 150px;
  max-width: 160px;
  min-width: 80px;
  height: 22px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
  display: flex;
  align-items: center;
  padding: 2px 6px;
  gap: 5px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-button.active {
  background-color: #c0c0c0;
  background-image: repeating-conic-gradient(#ffffff 0% 25%, #c0c0c0 0% 50%);
  background-size: 2px 2px;
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-dark-gray);
  padding: 3px 5px 1px 7px;
  font-weight: bold;
}

.task-button img, .task-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.task-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

#tray {
  height: 22px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  font-size: 11px;
  background-color: var(--win-gray);
}

#tray-clock {
  font-family: var(--win-font);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   START MENU (AUTHENTIC 1995 POPUP)
   ========================================================================== */

#start-menu {
  position: absolute;
  bottom: 28px;
  left: 2px;
  width: 200px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 6px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
}

#start-menu.open {
  display: flex;
}

.start-sidebar {
  width: 26px;
  background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 12px;
  justify-content: center;
}

.start-sidebar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 14px;
  font-weight: bold;
  color: var(--win-light);
  letter-spacing: 2px;
}

.start-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2px 1px;
}

.start-item {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 6px;
  gap: 8px;
  font-size: 11px;
  color: var(--win-black);
  position: relative;
  cursor: pointer;
}

.start-item:hover {
  background-color: var(--win-navy);
  color: var(--win-light);
}

.start-item svg, .start-item img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.start-item .arrow {
  margin-left: auto;
  font-size: 9px;
}

.start-separator {
  height: 2px;
  border-top: 1px solid var(--win-dark-gray);
  border-bottom: 1px solid var(--win-light);
  margin: 3px 2px;
}

/* Submenu */
.start-submenu {
  position: absolute;
  left: 100%;
  top: -2px;
  width: 170px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 6px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  padding: 2px 1px;
  z-index: 10001;
}

.start-item:hover > .start-submenu {
  display: flex;
}

/* ==========================================================================
   WINDOW CHROME & STYLING
   ========================================================================== */

.win-window {
  position: absolute;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light-gray);
  border-left: 1px solid var(--win-light-gray);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 0px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-width: 180px;
  min-height: 120px;
  padding: 2px;
  z-index: 100;
}

.win-window.active {
  z-index: 200;
}

.win-window.minimized {
  display: none !important;
}

.win-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 28px) !important;
}

/* Title bar */
.win-titlebar {
  height: 18px;
  background-color: var(--win-dark-gray);
  color: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 0 3px;
  cursor: default;
}

.win-window.active .win-titlebar {
  background-color: var(--win-navy);
  color: var(--win-light);
}

.win-titlebar-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.win-titlebar-title img, .win-titlebar-title svg {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}

.win-titlebar-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.win-control-btn {
  width: 16px;
  height: 14px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: var(--cur-pointer);
  padding: 0;
}

.win-control-btn svg {
  pointer-events: none;
  shape-rendering: crispEdges;
  display: block;
}

.win-control-btn:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-dark-gray);
  padding-top: 1px;
  padding-left: 1px;
}

/* Menu bar inside window */
.win-menubar {
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  gap: 2px;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark-gray);
}

.win-menuitem {
  padding: 2px 6px;
  cursor: pointer;
}

.win-menuitem:hover {
  background-color: var(--win-navy);
  color: var(--win-light);
}

.win-menuitem u {
  text-decoration: underline;
}

/* Window Content Area */
.win-content {
  flex: 1;
  overflow: auto;
  background-color: var(--win-gray);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status Bar */
.win-statusbar {
  height: 20px;
  background-color: var(--win-gray);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px;
  margin-top: 2px;
}

.win-statusbar-panel {
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 1px 5px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   APP SPECIFIC STYLES
   ========================================================================== */

/* 1. BLOC-NOTES (NOTEPAD) */
.notepad-editor {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-family: "Lucida Console", "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 6px;
  resize: none;
  background-color: #ffffff;
  color: #000000;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black);
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

/* 2. CALCULATRICE */
.calc-container {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 230px;
  background-color: var(--win-gray);
}

.calc-display {
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black);
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px;
  font-family: "Lucida Console", monospace;
  font-size: 16px;
  font-weight: bold;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.calc-btn {
  height: 26px;
  font-size: 12px;
  font-weight: bold;
  padding: 0;
}

.calc-btn.op {
  color: #000080;
}

.calc-btn.danger {
  color: #800000;
}

/* 3. DÉMINEUR (MINESWEEPER) */
.minesweeper-container {
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background-color: var(--win-gray);
  border: 3px solid var(--win-gray);
}

.mine-header {
  width: 100%;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--win-dark-gray);
  border-left: 2px solid var(--win-dark-gray);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
}

.mine-counter {
  background-color: #000000;
  color: #ff0000;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 20px;
  font-weight: bold;
  padding: 1px 4px;
  border: 1px solid var(--win-dark-gray);
  letter-spacing: 2px;
  width: 48px;
  text-align: right;
}

.mine-face-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 16px;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(9, 20px);
  grid-template-rows: repeat(9, 20px);
  border-top: 3px solid var(--win-dark-gray);
  border-left: 3px solid var(--win-dark-gray);
  border-right: 3px solid var(--win-light);
  border-bottom: 3px solid var(--win-light);
  background-color: var(--win-dark-gray);
  gap: 0;
}

.mine-cell {
  width: 20px;
  height: 20px;
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-dark-gray);
  border-bottom: 2px solid var(--win-dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.mine-cell.revealed {
  border: 1px solid #7b7b7b;
  background-color: #c0c0c0;
}

.mine-cell.mine-hit {
  background-color: #ff0000;
}

/* Mine numbers colors */
.mine-1 { color: #0000ff; }
.mine-2 { color: #008000; }
.mine-3 { color: #ff0000; }
.mine-4 { color: #000080; }
.mine-5 { color: #800000; }
.mine-6 { color: #008080; }
.mine-7 { color: #000000; }
.mine-8 { color: #808080; }

/* 4. POSTE DE TRAVAIL (EXPLORER) */
.explorer-toolbar {
  height: 24px;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark-gray);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 4px;
}

.explorer-view {
  flex: 1;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 76px);
  grid-auto-rows: 70px;
  gap: 10px;
  overflow-y: auto;
}

.drive-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px;
  cursor: pointer;
  border: 1px dotted transparent;
}

.drive-item:hover {
  background-color: #f0f0f0;
}

.drive-item.selected {
  background-color: var(--win-navy);
  color: var(--win-light);
  border: 1px dotted #ffff00;
}

.drive-item svg, .drive-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  image-rendering: pixelated;
}

/* 5. INTERNET EXPLORER 3.0 */
.ie-addressbar {
  height: 26px;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark-gray);
  display: flex;
  align-items: center;
  padding: 2px 6px;
  gap: 6px;
}

.ie-input {
  flex: 1;
  height: 20px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black);
  padding: 0 4px;
  font-family: var(--win-font);
  font-size: 11px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

.ie-frame {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid var(--win-dark-gray);
  overflow: auto;
  padding: 15px;
  font-family: "Times New Roman", Times, serif;
}

.ie-frame h1 {
  font-size: 22px;
  color: #000080;
  border-bottom: 2px solid #808080;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.ie-frame p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ie-frame a {
  color: #0000ff;
  text-decoration: underline;
  cursor: pointer;
}

/* 6. MODALE D'ARRÊT DU SYSTÈME */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.modal-overlay.open {
  display: flex;
}

.shutdown-dialog {
  position: relative;
  width: 320px;
  background-color: var(--win-gray);
}

.shutdown-content {
  padding: 12px;
  display: flex;
  gap: 12px;
}

.shutdown-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.shutdown-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.shutdown-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
}

/* Écran orange d'extinction mythique */
#shutdown-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ff8800;
  font-family: "MS Sans Serif", Arial, sans-serif;
  text-align: center;
  z-index: 30000;
}

#shutdown-screen h1 {
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

#shutdown-screen p {
  font-size: 13px;
  color: #ffffff;
  margin-top: 20px;
  cursor: pointer;
  text-decoration: underline;
}

/* Context Menu */
#context-menu {
  position: absolute;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 5px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  width: 140px;
  padding: 2px 1px;
  z-index: 15000;
}

.context-item {
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  cursor: pointer;
}

.context-item:hover {
  background-color: var(--win-navy);
  color: var(--win-light);
}

/* ==========================================================================
   WINDOW RESIZE HANDLES (8 DIRECTIONS)
   ========================================================================== */

.win-resize-handle {
  position: absolute;
  z-index: 10;
}

.resizer-n { top: -3px; left: 4px; right: 4px; height: 6px; cursor: ns-resize; }
.resizer-s { bottom: -3px; left: 4px; right: 4px; height: 6px; cursor: ns-resize; }
.resizer-w { top: 4px; bottom: 4px; left: -3px; width: 6px; cursor: ew-resize; }
.resizer-e { top: 4px; bottom: 4px; right: -3px; width: 6px; cursor: ew-resize; }
.resizer-nw { top: -3px; left: -3px; width: 8px; height: 8px; cursor: nwse-resize; }
.resizer-ne { top: -3px; right: -3px; width: 8px; height: 8px; cursor: nesw-resize; }
.resizer-sw { bottom: -3px; left: -3px; width: 8px; height: 8px; cursor: nesw-resize; }
.resizer-se { bottom: -3px; right: -3px; width: 8px; height: 8px; cursor: nwse-resize; }

/* ==========================================================================
   MS PAINT (PAINTBRUSH)
   ========================================================================== */

.paint-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  background-color: var(--win-dark-gray);
  padding: 3px;
  gap: 3px;
}

.paint-toolbox {
  width: 54px;
  background-color: var(--win-gray);
  display: grid;
  grid-template-columns: repeat(2, 24px);
  grid-auto-rows: 24px;
  gap: 2px;
  padding: 2px;
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-dark-gray);
  border-bottom: 1px solid var(--win-dark-gray);
}

.paint-tool-btn {
  width: 24px;
  height: 24px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.paint-tool-btn.active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-dark-gray);
  background-color: #d4d0c8;
}

.paint-tool-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.paint-canvas-wrapper {
  flex: 1;
  overflow: auto;
  background-color: #808080;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black);
}

#paint-canvas {
  background-color: #ffffff;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  cursor: crosshair;
}

.paint-bottom-bar {
  background-color: var(--win-gray);
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 8px;
  border-top: 1px solid var(--win-light);
}

.paint-current-colors {
  width: 32px;
  height: 32px;
  position: relative;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  background-color: #ffffff;
}

.paint-color-secondary {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border: 1px solid #000000;
  box-shadow: 1px 1px 0px #fff;
}

.paint-color-primary {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #000000;
  border: 1px solid #000000;
  box-shadow: 1px 1px 0px #fff;
  z-index: 2;
}

.paint-palette {
  display: grid;
  grid-template-columns: repeat(14, 15px);
  grid-template-rows: repeat(2, 15px);
  gap: 1px;
}

.palette-swatch {
  width: 15px;
  height: 15px;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  cursor: pointer;
}

/* ==========================================================================
   MS-DOS PROMPT TERMINAL
   ========================================================================== */

.dos-window {
  background-color: #000000 !important;
  color: #c0c0c0;
  font-family: "Lucida Console", "Courier New", monospace;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 6px;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  font-size: 13px;
  line-height: 1.35;
}

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

.dos-input-line {
  display: flex;
  align-items: center;
}

.dos-prompt-label {
  color: #c0c0c0;
  margin-right: 4px;
}

.dos-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  flex: 1;
}

/* ==========================================================================
   PROPRIÉTÉS DE L'AFFICHAGE & FONDS D'ÉCRAN
   ========================================================================== */

.display-props-container {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.win-tabs {
  display: flex;
  border-bottom: 1px solid var(--win-light);
  gap: 2px;
}

.win-tab {
  padding: 3px 8px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  cursor: pointer;
}

.win-tab.active {
  font-weight: bold;
  border-bottom: 2px solid var(--win-gray);
  margin-bottom: -1px;
}

.display-crt-preview {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #555555;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 6px;
}

.mini-monitor {
  width: 140px;
  height: 96px;
  background-color: #d4d0c8;
  border-radius: 4px;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.mini-screen {
  width: 116px;
  height: 74px;
  border-radius: 3px;
  border: 2px solid #000;
  overflow: hidden;
  position: relative;
  background-color: #008080;
}

.wallpaper-select-box {
  width: 100%;
  height: 80px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  overflow-y: auto;
}

.wallpaper-option {
  padding: 2px 6px;
  cursor: pointer;
}

.wallpaper-option.selected {
  background-color: var(--win-navy);
  color: var(--win-light);
}

/* Authentic Windows 95 Clouds Pattern (CLOUDS.BMP) */
.wp-clouds {
  background-color: #008080 !important;
  background-image: url('../img/Clouds.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Authentic Windows 95 Official Logo Wallpaper (WIN95.BMP) */
.wp-win95 {
  background-color: #008080 !important;
  background-image: url('../img/WIN95.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Authentic Windows 95 Setup Wallpaper (SETUP.BMP) */
.wp-setup {
  background-color: #008080 !important;
  background-image: url('../img/Setup.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Labyrinthe Pattern */
.wp-maze {
  background-color: #008080 !important;
  background-image: repeating-linear-gradient(45deg, #005a5a 0, #005a5a 10px, transparent 0, transparent 20px) !important;
}

/* ==========================================================================
   SYSTRAY VOLUME CONTROL POPUP
   ========================================================================== */

#volume-popup {
  position: absolute;
  bottom: 30px;
  right: 12px;
  width: 80px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 6px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  z-index: 10005;
}

#volume-popup.open {
  display: flex;
}

.vol-slider-container {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.vol-slider {
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical;
  width: 20px;
  height: 80px;
  cursor: pointer;
}

.vol-mute-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  margin-top: 4px;
  cursor: pointer;
}

/* ==========================================================================
   3D STARFIELD SCREENSAVER
   ========================================================================== */

#screensaver-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: none;
  z-index: 35000;
  cursor: none;
}

/* ==========================================================================
   BLUE SCREEN OF DEATH (BSOD)
   ========================================================================== */

#bsod-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000080;
  color: #ffffff;
  font-family: "Lucida Console", "Courier New", monospace;
  padding: 60px 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 40000;
  cursor: default;
}

.bsod-title-box {
  background-color: #c0c0c0;
  color: #000080;
  padding: 2px 14px;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 24px;
}

.bsod-body {
  max-width: 680px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   RETRO CRT MONITOR SCANLINE FILTER
   ========================================================================== */

#crt-filter {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50000;
  display: none;
  background: 
    radial-gradient(circle at center, rgba(18, 16, 16, 0) 60%, rgba(0, 0, 0, 0.45) 92%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 100%, 100% 3px, 3px 100%;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.65);
}

#crt-filter.active {
  display: block;
}

#crt-filter::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 2px;
  pointer-events: none;
}

/* ==========================================================================
   13. SOLITAIRE (KLONDIKE)
   ========================================================================== */

.solitaire-felt {
  background-color: #007a00;
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.solitaire-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sol-stock-waste-group {
  display: flex;
  gap: 12px;
}

.sol-foundations-group {
  display: flex;
  gap: 12px;
}

.sol-bottom-row {
  display: flex;
  justify-content: space-between;
  flex: 1;
  min-height: 280px;
}

.tableau-col {
  width: 71px;
  min-height: 260px;
  position: relative;
}

.card-slot {
  width: 71px;
  height: 96px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  position: relative;
  box-sizing: border-box;
}

.card-slot.foundation {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-slot.foundation::after {
  content: attr(data-suit);
  font-size: 32px;
  color: rgba(255, 255, 255, 0.2);
}

.sol-card {
  width: 71px;
  height: 96px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 4px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 4px;
  box-sizing: border-box;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: bold;
  cursor: grab !important;
  user-select: none;
}

.sol-card:active {
  cursor: grabbing !important;
}

.sol-card.back {
  background: repeating-linear-gradient(45deg, #000080, #000080 4px, #1084d0 4px, #1084d0 8px);
  border: 1px solid #ffffff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  cursor: default !important;
}

.sol-card.back::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid #ffff00;
  pointer-events: none;
}

.sol-card.red {
  color: #cc0000;
}

.sol-card.black {
  color: #000000;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-rank {
  font-size: 13px;
}

.card-suit-small {
  font-size: 11px;
}

.card-center-suit {
  align-self: center;
  font-size: 26px;
  line-height: 1;
}

.card-corner.bottom {
  transform: rotate(180deg);
}

#solitaire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  display: none;
}

/* ==========================================================================
   14. DIAL-UP NETWORKING (ACCÈS RÉSEAU À DISTANCE)
   ========================================================================== */

.dialup-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialup-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dialup-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dialup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.dialup-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialup-row label {
  width: 110px;
  font-size: 11px;
}

.dialup-input {
  flex: 1;
  height: 22px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 2px 4px;
  font-family: var(--win-font);
  font-size: 11px;
  outline: none;
}

.dialup-status-box {
  height: 48px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dialup-status-text {
  font-size: 11px;
  color: #000000;
  font-weight: bold;
}

.dialup-progress-track {
  width: 100%;
  height: 14px;
  background-color: #dfdfdf;
  border: 1px solid #808080;
  display: flex;
  padding: 1px;
  gap: 2px;
  overflow: hidden;
}

.dialup-progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, #000080 0, #000080 8px, #ffffff 8px, #ffffff 10px);
  transition: width 0.3s linear;
}

.dialup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Systray dialup icon */
#tray-dialup {
  display: none;
  cursor: pointer;
  width: 16px;
  height: 16px;
  margin-right: 2px;
}

#tray-dialup.connected {
  display: inline-block;
}

#tray-dialup.active svg .screen-fill {
  fill: #00ff00 !important;
}

/* ==========================================================================
   15. LECTEUR CD WINDOWS 95 (CD PLAYER)
   ========================================================================== */

.cdplayer-container {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--win-gray);
}

.cd-top-panel {
  display: flex;
  gap: 10px;
}

.cd-lcd {
  flex: 1;
  background-color: #001500;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-family: "Lucida Console", Monaco, monospace;
}

.cd-lcd-main {
  color: #00ff41;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 0 6px #00ff41;
}

.cd-lcd-sub {
  color: #008822;
  font-size: 10px;
  letter-spacing: 1px;
}

.cd-disc-box {
  width: 64px;
  height: 64px;
  background-color: #111;
  border-top: 2px solid #000;
  border-left: 2px solid #000;
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-disc-spinning {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #333 15%, #bbb 20%, #ddd 50%, #999 80%, #444 100%);
  border: 1px solid #666;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-disc-spinning::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: #111;
  border-radius: 50%;
  border: 2px solid #bbb;
}

.cd-disc-spinning.spin {
  animation: cdSpin 1.8s linear infinite;
}

@keyframes cdSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cd-controls-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.cd-btn {
  width: 38px;
  height: 26px;
  font-size: 12px;
  font-weight: bold;
}

.cd-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-select {
  flex: 1;
  height: 22px;
  background-color: #fff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  font-family: var(--win-font);
  font-size: 11px;
}

/* ==========================================================================
   16. VFS CONTEXT MENU & EXPLORER POLISH
   ========================================================================== */

#explorer-context-menu {
  position: absolute;
  width: 160px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 5px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  padding: 2px;
  z-index: 10006;
}

#explorer-context-menu.open {
  display: flex;
}

/* ==========================================================================
   17. WIREFRAME BOX & ALT+TAB COOLSWITCH
   ========================================================================== */

#wireframe-box {
  position: absolute;
  border: 1px dashed #000000;
  outline: 1px dashed #ffffff;
  background-color: transparent;
  pointer-events: none;
  z-index: 99999;
  display: none;
}

#alttab-switcher {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--win-gray);
  border-top: 2px solid var(--win-light);
  border-left: 2px solid var(--win-light);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              3px 3px 10px rgba(0,0,0,0.6);
  padding: 10px 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100000;
  min-width: 260px;
}

#alttab-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  min-height: 44px;
}

.alttab-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 2px;
}

.alttab-item.active {
  border: 1px dotted #000000;
  background-color: rgba(0, 0, 128, 0.15);
}

.alttab-item svg, .alttab-item img {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

#alttab-title {
  font-size: 11px;
  font-weight: bold;
  color: var(--win-black);
  text-align: center;
}

/* ==========================================================================
   18. WORDPAD (ÉDITEUR DE TEXTE RICHE)
   ========================================================================== */

.wordpad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark-gray);
}

.wordpad-select {
  height: 22px;
  background: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  font-family: var(--win-font);
  font-size: 11px;
}

.wordpad-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 11px;
  font-weight: bold;
}

.wordpad-btn.active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  background-color: #e0e0e0;
}

.wordpad-ruler {
  height: 16px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--win-dark-gray);
  position: relative;
  background-image: repeating-linear-gradient(90deg, #888 0, #888 1px, transparent 1px, transparent 20px);
}

.wordpad-editor {
  flex: 1;
  padding: 12px;
  background-color: #ffffff;
  color: #000000;
  overflow-y: auto;
  outline: none;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.4;
  cursor: var(--cur-text) !important;
}

/* ==========================================================================
   19. MAGNÉTOPHONE (SOUNDREC.EXE)
   ========================================================================== */

.soundrec-container {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
  background-color: var(--win-gray);
}

.soundrec-screen {
  background-color: #000000;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#soundrec-canvas {
  width: 100%;
  height: 70px;
  background-color: #001100;
}

.soundrec-led-time {
  position: absolute;
  top: 4px;
  right: 8px;
  color: #00ff00;
  font-family: monospace;
  font-size: 12px;
  font-weight: bold;
}

.soundrec-track {
  width: 100%;
  height: 14px;
  margin-top: 4px;
}

.soundrec-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.soundrec-btn {
  width: 38px;
  height: 26px;
  font-size: 12px;
  font-weight: bold;
}

.soundrec-btn.record-btn {
  color: #cc0000;
}

/* ==========================================================================
   20. PANNEAU DE CONFIGURATION
   ========================================================================== */

.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  padding: 14px;
  background-color: #ffffff;
  flex: 1;
  overflow-y: auto;
}

.cp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  border: 1px dotted transparent;
}

.cp-item:hover {
  background-color: #e6f0fa;
}

.cp-item.selected {
  border: 1px dotted var(--win-navy);
  background-color: var(--win-navy);
  color: #ffffff;
}

.cp-item svg, .cp-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.cp-item span {
  font-size: 11px;
}

/* ==========================================================================
   21. DIALOGUES SYSTÈME AUTHENTIQUES (Exécuter, Ctrl+Alt+Del, SystProps, Date/Heure)
   ========================================================================== */

/* Exécuter... */
.run-dialog-content {
  display: flex;
  gap: 12px;
  padding: 10px;
}

.run-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.run-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.run-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.run-select-input {
  flex: 1;
  height: 22px;
  background: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  font-family: var(--win-font);
  font-size: 11px;
  padding: 0 4px;
}

/* Ctrl+Alt+Del / Fermer le programme */
.taskmgr-list {
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  height: 150px;
  overflow-y: auto;
  padding: 2px;
}

.taskmgr-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  font-size: 11px;
  cursor: pointer;
}

.taskmgr-item.selected {
  background-color: var(--win-navy);
  color: #ffffff;
}

.taskmgr-item svg, .taskmgr-item img {
  width: 16px;
  height: 16px;
}

/* Propriétés Système */
.sysprops-general {
  display: flex;
  gap: 14px;
  padding: 10px;
}

.sysprops-logo {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.sysprops-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.sysprops-info b {
  color: #000080;
}

/* Propriétés Date et Heure */
.datetime-layout {
  display: flex;
  gap: 14px;
  padding: 10px;
}

.datetime-cal-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-header-row {
  display: flex;
  gap: 4px;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
}

.cal-table th {
  background-color: var(--win-gray);
  font-weight: normal;
  padding: 2px;
}

.cal-table td {
  padding: 2px;
  cursor: pointer;
}

.cal-table td.today {
  outline: 1px dotted #000080;
  font-weight: bold;
}

.cal-table td.selected {
  background-color: var(--win-navy);
  color: #ffffff;
}

.datetime-clock-panel {
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#analog-clock-canvas {
  width: 110px;
  height: 110px;
  background-color: transparent;
}

/* Win95 Generic Message Box */
#win95-msgbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100010;
}

.msgbox-content {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.msgbox-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.msgbox-message {
  font-size: 11px;
  color: var(--win-black);
  max-width: 280px;
  white-space: pre-wrap;
}

.msgbox-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 14px 12px 14px;
}

/* ==========================================================================
   22. COLOR THEMES (PROPRIÉTÉS D'AFFICHAGE)
   ========================================================================== */

:root.theme-maple {
  --win-teal: #78281f;
  --win-gray: #d5c8b8;
  --win-light: #ffffff;
  --win-light-gray: #e6ded3;
  --win-dark-gray: #8a7a6b;
  --win-navy: #6b1426;
  --win-navy-light: #9e2a2b;
}

:root.theme-desert {
  --win-teal: #c2884a;
  --win-gray: #d4c2a5;
  --win-light: #fff5e6;
  --win-light-gray: #e2d5be;
  --win-dark-gray: #8c7659;
  --win-navy: #8b4513;
  --win-navy-light: #cd853f;
}

:root.theme-night {
  --win-teal: #0a192f;
  --win-gray: #c0c5cd;
  --win-light: #ffffff;
  --win-light-gray: #dde1e7;
  --win-dark-gray: #6e7987;
  --win-navy: #001f3f;
  --win-navy-light: #0074d9;
}

:root.theme-lilac {
  --win-teal: #70587c;
  --win-gray: #d6cadb;
  --win-light: #ffffff;
  --win-light-gray: #eae3ed;
  --win-dark-gray: #8d7a94;
  --win-navy: #4a2545;
  --win-navy-light: #893168;
}

:root.theme-highcontrast {
  --win-teal: #000000;
  --win-gray: #111111;
  --win-light: #ffffff;
  --win-light-gray: #333333;
  --win-dark-gray: #888888;
  --win-navy: #0000aa;
  --win-navy-light: #00ffff;
  --win-black: #ffffff;
}

:root.theme-matrix {
  --win-teal: #051605;
  --win-gray: #0d1e0d;
  --win-light: #33ff33;
  --win-light-gray: #1e3a1e;
  --win-dark-gray: #114411;
  --win-black: #33ff33;
  --win-navy: #004400;
  --win-navy-light: #00ff66;
}

/* ==========================================================================
   23. AUTHENTIC WINDOWS 95 LOGON DIALOG
   ========================================================================== */

#login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--win-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.login-dialog {
  width: 440px;
  background-color: var(--win-gray);
  position: relative;
  box-shadow: 2px 2px 0px var(--win-black);
}

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

.login-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-prompt-text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--win-black);
}

.login-form-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.login-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-field label {
  font-size: 11px;
  color: var(--win-black);
  white-space: nowrap;
  width: 115px;
}

.login-field label u {
  text-decoration: underline;
}

.win-input {
  flex: 1;
  height: 22px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0px var(--win-black);
  padding: 2px 4px;
  font-family: var(--win-font);
  font-size: 11px;
  color: var(--win-black);
  outline: none;
}

.win-input:focus {
  outline: none;
  background-color: #ffffff;
}

.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80px;
}

.win-button.default-btn {
  border: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light),
              inset -1px -1px 0px var(--win-dark-gray),
              0 0 0 1px var(--win-black);
  font-weight: bold;
}

/* ==========================================================================
   22. CONTEXT MENUS (DESKTOP & TASKBAR)
   ========================================================================== */

#context-menu, #taskbar-context-menu {
  position: absolute;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 5px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  padding: 2px 1px;
  z-index: 10002;
  min-width: 180px;
  font-family: var(--win-font);
  font-size: 11px;
}

.context-item {
  display: flex;
  align-items: center;
  padding: 3px 12px 3px 18px;
  color: var(--win-black);
  cursor: default;
  white-space: nowrap;
  user-select: none;
  position: relative;
  gap: 8px;
}

.context-item:hover {
  background-color: var(--win-navy);
  color: var(--win-light);
}

.context-item.disabled {
  color: var(--win-dark-gray);
  text-shadow: 1px 1px 0 #ffffff;
  pointer-events: none;
}

.context-item svg, .context-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.context-item .arrow {
  margin-left: auto;
  font-size: 9px;
}

.context-separator {
  height: 2px;
  border-top: 1px solid var(--win-dark-gray);
  border-bottom: 1px solid var(--win-light);
  margin: 3px 2px;
}

.context-submenu {
  position: absolute;
  left: 100%;
  top: -2px;
  width: 175px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0px var(--win-light-gray),
              inset -1px -1px 0px var(--win-dark-gray),
              2px 2px 6px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  padding: 2px 1px;
  z-index: 10003;
}

.context-item:hover > .context-submenu {
  display: flex;
}

/* ==========================================================================
   23. EXPLORER ENHANCEMENTS (ADDRESS BAR & PARENT FOLDER)
   ========================================================================== */

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark-gray);
  box-shadow: 0 1px 0 #fff;
  flex-wrap: wrap;
}

.explorer-toolbar-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 2px;
}

.explorer-address-input {
  flex: 1;
  height: 20px;
  background-color: #fff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  font-family: var(--win-font);
  font-size: 11px;
  padding: 0 4px;
  color: #000;
  outline: none;
}

/* ==========================================================================
   24. RECHERCHER : TOUS LES FICHIERS (WIN-FIND-DIALOG)
   ========================================================================== */

.find-tabs-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--win-gray);
}

.find-tabs-header {
  display: flex;
  gap: 2px;
  padding: 4px 6px 0 6px;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark-gray);
}

.find-tab {
  padding: 3px 8px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-dark-gray);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  user-select: none;
  margin-bottom: -1px;
}

.find-tab.active {
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-gray);
  font-weight: bold;
  padding-top: 4px;
}

.find-tab-body {
  padding: 8px;
  border: 1px solid var(--win-light);
  border-top: none;
  background-color: var(--win-gray);
  display: flex;
  gap: 12px;
}

.find-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.find-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.find-field-row label {
  width: 90px;
  text-align: right;
  white-space: nowrap;
}

.find-btn-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 110px;
}

.find-animation-box {
  width: 70px;
  height: 60px;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}

.find-magnifier {
  position: absolute;
  width: 28px;
  height: 28px;
  transition: transform 0.1s;
}

.find-animation-box.scanning .find-magnifier {
  animation: scan-folder 1.4s infinite ease-in-out alternate;
}

@keyframes scan-folder {
  0% { transform: translate(-14px, -10px) rotate(-10deg); }
  50% { transform: translate(12px, 8px) rotate(15deg); }
  100% { transform: translate(-10px, 12px) rotate(0deg); }
}

.find-results-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  background-color: #fff;
  margin-top: 6px;
  min-height: 120px;
  overflow-y: auto;
}

.find-results-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--win-font);
  font-size: 11px;
}

.find-results-table th {
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-dark-gray);
  padding: 2px 4px;
  text-align: left;
  font-weight: normal;
  position: sticky;
  top: 0;
  cursor: default;
  user-select: none;
}

.find-results-table td {
  padding: 2px 4px;
  white-space: nowrap;
  border: none;
  cursor: default;
}

.find-results-table tr:hover {
  background-color: #e0e8ff;
}

.find-results-table tr.selected {
  background-color: var(--win-navy);
  color: #fff;
}

/* ==========================================================================
   25. ÉCRAN BIENVENUE DANS WINDOWS 95 (WIN-WELCOME)
   ========================================================================== */

.welcome-header {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--win-black);
}

.welcome-header h2 {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin: 0;
}

.welcome-body {
  display: flex;
  padding: 12px;
  gap: 14px;
  background-color: var(--win-gray);
  flex: 1;
}

.welcome-tip-card {
  flex: 1;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welcome-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--win-navy);
  font-size: 12px;
}

.welcome-tip-content {
  font-size: 11px;
  line-height: 15px;
  color: #000;
  flex: 1;
}

.welcome-actions-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 170px;
}

.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  font-size: 11px;
}

/* ==========================================================================
   26. LECTEUR MULTIMÉDIA MPLAYER (WIN-MEDIAPLAYER)
   ========================================================================== */

.mplayer-body {
  display: flex;
  flex-direction: column;
  background-color: var(--win-gray);
  padding: 6px;
  gap: 6px;
}

.mplayer-lcd-display {
  background-color: #000000;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
}

.mplayer-trackbar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
}

.mplayer-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
}

.mplayer-slider::-webkit-slider-runnable-track {
  height: 4px;
  background-color: var(--win-dark-gray);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
}

.mplayer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 18px;
  margin-top: -7px;
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-light-gray);
  cursor: pointer;
}

.mplayer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mplayer-btn {
  width: 26px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mplayer-btn svg {
  width: 12px;
  height: 12px;
}

.mplayer-track-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 8px;
  color: #444;
}

.mplayer-video-box {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: #000000;
  border-top: 2px solid var(--win-dark-gray);
  border-left: 2px solid var(--win-dark-gray);
  border-right: 2px solid var(--win-light);
  border-bottom: 2px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mplayer-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000000;
}

.mplayer-video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 128, 0.8);
  color: #ffffff;
  font-size: 9px;
  font-family: var(--win-font);
  padding: 2px 6px;
  border: 1px solid #ffffff;
  pointer-events: none;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px;
}

.mplayer-vol-slider {
  width: 55px;
  height: 14px;
  cursor: pointer;
  margin-left: 4px;
}

/* ==========================================================================
   eMule v0.50a VINTAGE WINDOWS 95 STYLES
   ========================================================================== */
#win-emule {
  display: flex;
  flex-direction: column;
}

.emule-conn-banner {
  background-color: #d4d0c8;
  border-bottom: 1px solid #808080;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.emule-conn-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emule-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00aa00;
  border: 1px solid #005500;
  margin-right: 4px;
}

.emule-tab-bar {
  display: flex;
  background-color: #d4d0c8;
  padding: 4px 6px 0 6px;
  border-bottom: 1px solid #808080;
  gap: 3px;
}

.emule-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background-color: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #808080;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-family: var(--win-font);
  user-select: none;
  position: relative;
  top: 1px;
}

.emule-tab svg {
  width: 14px;
  height: 14px;
}

.emule-tab.active {
  font-weight: bold;
  background-color: #d4d0c8;
  border-bottom: 1px solid #d4d0c8;
  z-index: 2;
}

.emule-tab[data-tab="disks"] {
  margin-left: auto;
}

.emule-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #d4d0c8;
  padding: 6px;
  overflow: hidden;
}

.emule-tab-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.emule-tab-pane.active {
  display: flex;
}

.emule-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  margin-bottom: 6px;
  background-color: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  font-size: 11px;
}

.emule-toolbar input[type="text"],
.emule-toolbar select {
  font-family: var(--win-font);
  font-size: 11px;
  padding: 2px 4px;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  outline: none;
  background-color: #ffffff;
}

.emule-table-container {
  flex: 1;
  overflow: auto;
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.emule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: var(--win-font);
  table-layout: auto;
}

.emule-table thead th {
  position: sticky;
  top: 0;
  background-color: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 3px 6px;
  font-weight: normal;
  text-align: left;
  user-select: none;
  white-space: nowrap;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  z-index: 1;
}

.emule-table thead th[data-col] {
  cursor: pointer;
}

.emule-table thead th[data-col]:hover {
  background-color: #dfdbd2;
}

.emule-table thead th[data-col]:active {
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff;
}

.emule-table thead th.sorted {
  font-weight: bold;
}

.emule-table thead th .sort-indicator {
  font-size: 8px;
  color: #000080;
  margin-left: 2px;
  font-weight: bold;
}

.emule-table tbody tr {
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.emule-table tbody tr:hover {
  background-color: #eef3fa;
}

.emule-table tbody tr.selected {
  background-color: #000080 !important;
  color: #ffffff !important;
}

.emule-table tbody tr.selected td {
  color: #ffffff !important;
}

.emule-table tbody tr.selected .status-badge {
  border-color: #ffffff;
}

.emule-table td {
  padding: 3px 6px;
  vertical-align: middle;
}

.emule-progress-wrap {
  position: relative;
  height: 14px;
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  overflow: hidden;
}

.emule-progress-bar {
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #000080,
    #000080 6px,
    #1050a0 6px,
    #1050a0 12px
  );
  transition: width 0.3s ease;
}

.emule-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  color: #000000;
  mix-blend-mode: hard-light;
}

.status-badge {
  display: inline-block;
  padding: 1px 5px;
  font-size: 9px;
  border-radius: 2px;
  border: 1px solid #808080;
}

.status-badge.status-downloading {
  background-color: #cce5ff;
  color: #004085;
  border-color: #b8daff;
}

.status-badge.status-seeding {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-badge.status-paused {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

.status-badge.status-checking {
  background-color: #e2e3e5;
  color: #383d41;
  border-color: #d6d8db;
}

.status-badge.status-ok {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-badge.status-low {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

.status-badge.status-critical {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
  font-weight: bold;
}

.emule-disk-bar-wrap {
  position: relative;
  height: 14px;
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  overflow: hidden;
}

.emule-disk-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.emule-disk-bar-fill.bar-ok {
  background: repeating-linear-gradient(
    -45deg,
    #008000,
    #008000 6px,
    #10a010 6px,
    #10a010 12px
  );
}

.emule-disk-bar-fill.bar-low {
  background: repeating-linear-gradient(
    -45deg,
    #d39e00,
    #d39e00 6px,
    #f0ad4e 6px,
    #f0ad4e 12px
  );
}

.emule-disk-bar-fill.bar-critical {
  background: repeating-linear-gradient(
    -45deg,
    #c82333,
    #c82333 6px,
    #dc3545 6px,
    #dc3545 12px
  );
}

.emule-btn-dl {
  padding: 1px 6px !important;
  font-size: 10px !important;
  font-weight: bold;
}

/* Cellule fichier avec vignette de recherche c411 */
.emule-file-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.emule-search-thumb-box {
  position: relative;
  width: 24px;
  height: 34px;
  min-width: 24px;
  max-width: 24px;
  background-color: #000000;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}

.emule-search-thumb-box:hover {
  border-color: #000080;
}

.emule-search-thumb-box.is-empty {
  background-color: #d4d0c8;
  color: #000000;
}

.emule-search-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emule-search-thumb-fallback {
  font-size: 13px;
  line-height: 1;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emule-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* Infobulle agrandie au survol de la vignette (preview poster) */
.emule-thumb-preview-popup {
  position: fixed;
  z-index: 100000;
  width: 140px;
  background-color: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.55);
  padding: 3px;
  pointer-events: none;
  font-family: var(--win-font);
}

.emule-thumb-preview-inner {
  background-color: #000000;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.emule-thumb-preview-img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
  background-color: #000000;
}

.emule-thumb-preview-title {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: bold;
  color: #000000;
  background-color: #ffffcc;
  border-top: 1px solid #808080;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

/* Grille des films Jellyfin */
.emule-movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  padding: 6px;
  overflow-y: auto;
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  flex: 1;
}

.emule-movie-card {
  background-color: #d4d0c8;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s;
}

.emule-movie-card:hover {
  background-color: #ffffcc;
  border-color: #000080;
}

.movie-poster-box {
  position: relative;
  width: 100%;
  height: 150px;
  background-color: #000000;
  overflow: hidden;
  border: 1px solid #808080;
}

.movie-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-rating-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffd700;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid #333;
}

.movie-info {
  padding: 4px 2px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.movie-title {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000000;
}

.movie-meta {
  font-size: 9px;
  color: #555555;
  display: flex;
  gap: 4px;
}

.movie-genres {
  font-size: 9px;
  color: #000080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barre d'état eMule */
.emule-statusbar {
  display: flex;
  background-color: #d4d0c8;
  padding: 2px 4px;
  gap: 3px;
  border-top: 1px solid #808080;
  height: 22px;
}

.emule-statusbar-panel {
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 1px 5px;
  font-size: 10px;
  font-family: var(--win-font);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   28. ÉDITEUR DU REGISTRE (REGEDIT.EXE)
   ========================================================================== */

.regedit-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--win-gray);
  overflow: hidden;
}

.regedit-split {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 4px;
  gap: 4px;
}

.regedit-tree-panel {
  width: 210px;
  min-width: 140px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  overflow: auto;
  padding: 4px;
  user-select: none;
}

.regedit-list-panel {
  flex: 1;
  min-width: 200px;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  overflow: auto;
}

.win-treeview {
  font-size: 11px;
  font-family: var(--win-font);
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 2px;
  cursor: pointer;
  white-space: nowrap;
}

.tree-row:hover {
  background-color: #f0f0f0;
}

.tree-row.selected {
  background-color: var(--win-navy);
  color: #ffffff;
}

.tree-row.selected .tree-title {
  color: #ffffff;
}

.tree-toggle {
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #808080;
  background-color: #ffffff;
  font-family: monospace;
  font-size: 9px;
  line-height: 7px;
  cursor: pointer;
  color: #000000;
}

.tree-toggle.empty {
  visibility: hidden;
}

.tree-children {
  padding-left: 16px;
  border-left: 1px dotted #808080;
  margin-left: 6px;
}

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

.regedit-table th {
  background-color: var(--win-gray);
  border-top: 1px solid var(--win-light);
  border-left: 1px solid var(--win-light);
  border-right: 1px solid var(--win-dark-gray);
  border-bottom: 1px solid var(--win-dark-gray);
  padding: 2px 6px;
  font-weight: normal;
  text-align: left;
  user-select: none;
}

.regedit-table td {
  padding: 2px 6px;
  cursor: pointer;
}

.regedit-table tr:hover td {
  background-color: #f5f5f5;
}

.regedit-table tr.selected td {
  background-color: var(--win-navy);
  color: #ffffff;
}

/* ==========================================================================
   29. SCANDISK (SCANDISK.EXE)
   ========================================================================== */

.scandisk-container {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 10px;
  background-color: var(--win-gray);
  font-size: 11px;
}

.scandisk-phases-box {
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scandisk-phase-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555555;
}

.scandisk-phase-item.active {
  color: #000080;
  font-weight: bold;
}

.scandisk-phase-item.done {
  color: #006600;
}

.scandisk-phase-item.done::after {
  content: "✓";
  margin-left: auto;
  font-weight: bold;
}

/* ==========================================================================
   30. PROPRIÉTÉS DE LA SOURIS & JACK-IN-THE-BOX (MAIN.CPL)
   ========================================================================== */

.mouse-layout {
  display: flex;
  gap: 14px;
  padding: 10px;
}

.jackbox-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  box-shadow: inset 1px 1px 0 #000;
  width: 90px;
  height: 85px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.jackbox-box {
  width: 38px;
  height: 38px;
  background-color: #000080;
  border: 2px solid #ffff00;
  position: absolute;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #000;
}

.jackbox-lid {
  width: 44px;
  height: 6px;
  background-color: #cc0000;
  border: 1px solid #000;
  position: absolute;
  top: -6px;
  transition: transform 0.15s ease-out;
  transform-origin: left center;
}

.jackbox-puppet {
  position: absolute;
  bottom: 25px;
  width: 40px;
  height: 45px;
  display: none;
  flex-direction: column;
  align-items: center;
}

.jackbox-open .jackbox-lid {
  transform: rotate(-75deg);
}

.jackbox-open .jackbox-puppet {
  display: flex;
  animation: jack-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes jack-pop {
  0% { transform: translateY(20px) scale(0.4); opacity: 0; }
  60% { transform: translateY(-10px) scale(1.15); opacity: 1; }
  100% { transform: translateY(0px) scale(1); opacity: 1; }
}

/* ==========================================================================
   31. À PROPOS DE WINDOWS 95 (WINVER.EXE)
   ========================================================================== */

.winver-container {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 14px;
  background-color: var(--win-gray);
  font-size: 11px;
}

.winver-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px groove #ffffff;
  padding-bottom: 12px;
}

.winver-logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.winver-box {
  background-color: #ffffff;
  border-top: 1px solid var(--win-dark-gray);
  border-left: 1px solid var(--win-dark-gray);
  border-right: 1px solid var(--win-light);
  border-bottom: 1px solid var(--win-light);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   29. POST-IT / PENSE-BÊTE DE BUREAU (EN HAUT À DROITE)
   ========================================================================== */
.postit-note {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 220px;
  height: 200px;
  min-width: 170px;
  min-height: 150px;
  max-width: 850px;
  max-height: 750px;
  background: linear-gradient(180deg, #fff988 0%, #ffff85 15%, #ffff7a 100%);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid #e0d060;
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  z-index: 45;
  user-select: none;
  font-family: var(--win-font);
  resize: both;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.postit-note:hover {
  box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.postit-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.postit-header {
  height: 24px;
  background: rgba(230, 215, 60, 0.45);
  border-bottom: 1px solid rgba(180, 165, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  cursor: grab;
  user-select: none;
}

.postit-header:active {
  cursor: grabbing;
}

.postit-title {
  font-size: 11px;
  font-weight: bold;
  color: #554400;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

.postit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.postit-status {
  font-size: 9px;
  color: #226600;
  font-weight: bold;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.postit-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1px 3px;
  font-size: 11px;
  opacity: 0.6;
  border-radius: 2px;
  line-height: 1;
}

.postit-icon-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.postit-textarea {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 6px 8px;
  font-family: "Segoe Print", "Comic Sans MS", "Arial", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #1a1a1a;
  user-select: text;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 20px,
    rgba(180, 165, 40, 0.2) 20px,
    rgba(180, 165, 40, 0.2) 21px
  );
  background-attachment: local;
}

.postit-textarea::placeholder {
  color: #887722;
  font-style: italic;
  opacity: 0.7;
}

.postit-footer {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 9px;
  color: #776611;
  border-top: 1px dashed rgba(180, 165, 40, 0.25);
  background: rgba(255, 255, 255, 0.2);
}

.postit-dogear {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.16) 50%),
              linear-gradient(135deg, transparent 50%, #eedb66 50%);
  align-self: flex-end;
  cursor: se-resize;
  user-select: none;
  touch-action: none;
}

/* ==========================================================================
   MULTIPLAYER SHARED DESKTOP & CURSORS
   ========================================================================== */
#multiplayer-cursors-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100010;
  overflow: hidden;
}

.remote-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: transform 0.04s linear;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.remote-cursor-arrow {
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.4));
  transition: transform 0.1s ease;
}

.remote-cursor.is-down .remote-cursor-arrow {
  transform: scale(0.9) translate(1px, 1px);
}

.remote-cursor-tag {
  margin-top: -2px;
  margin-left: 12px;
  padding: 1px 5px;
  font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
  font-size: 10px;
  font-weight: bold;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
  line-height: 13px;
  user-select: none;
}

.remote-cursor-click-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffff00;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.remote-cursor.is-down .remote-cursor-click-ring {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1.5);
}

/* Clignotement vert/cyan du modem dial-up réseau lors des échanges de paquets */
#tray-dialup.network-active .screen-fill {
  fill: #00ff00 !important;
  filter: drop-shadow(0 0 2px #00ff00);
}

/* ==========================================================================
   RETRO TORRENT DOWNLOAD WIDGET (NETVAMPIRE / GETRIGHT / EMULE 1995)
   ========================================================================== */

.torrent-widget {
  position: absolute;
  left: 6px;
  bottom: 34px;
  width: 290px;
  background-color: var(--win-gray, #c0c0c0);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  box-shadow: inset 1px 1px 0px #dfdfdf, inset -1px -1px 0px #808080, 2px 2px 5px rgba(0, 0, 0, 0.45);
  font-family: var(--win-font, 'MS Sans Serif', Tahoma, sans-serif);
  font-size: 11px;
  user-select: none;
  z-index: 9990;
  padding: 2px;
  box-sizing: border-box;
}

.torrent-widget.collapsed {
  width: 240px;
}

/* Titlebar */
.torrent-widget-titlebar {
  height: 18px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 3px 1px 4px;
  cursor: move;
  box-sizing: border-box;
}

.torrent-widget-title-left {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.torrent-widget-icon {
  flex-shrink: 0;
  image-rendering: pixelated;
}

.torrent-widget-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

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

.torrent-widget-btn-ctrl {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  background-color: var(--win-gray, #c0c0c0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.torrent-widget-btn-ctrl:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* Body */
.torrent-widget-body {
  padding: 4px 3px 3px 3px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Stats Row */
.torrent-widget-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.torrent-widget-led-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.torrent-widget-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #333333;
  background-color: #888888;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.5);
}

.torrent-widget-led.downloading {
  background-color: #00ff00;
  box-shadow: 0 0 5px #00ff00, inset 1px 1px 1px rgba(255,255,255,0.7);
  animation: torrentLedBlink 1.2s infinite alternate ease-in-out;
}

.torrent-widget-led.seeding {
  background-color: #00aaff;
  box-shadow: 0 0 4px #00aaff, inset 1px 1px 1px rgba(255,255,255,0.7);
}

.torrent-widget-led.waiting {
  background-color: #ffcc00;
  box-shadow: 0 0 3px #ffcc00;
}

.torrent-widget-led.idle {
  background-color: #888888;
}

@keyframes torrentLedBlink {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.torrent-widget-status-text {
  font-weight: bold;
  color: #000080;
}

.torrent-widget-speeds {
  display: flex;
  gap: 8px;
  font-size: 11px;
}

.torrent-widget-speed-down {
  color: #006600;
}

.torrent-widget-speed-up {
  color: #000080;
}

/* File Row */
.torrent-widget-file-row {
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 3px 5px;
  box-sizing: border-box;
}

.torrent-widget-file-name {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000000;
}

.torrent-widget-file-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #555555;
  margin-top: 2px;
}

/* Segmented Windows 95 Progress Bar */
.torrent-widget-progress-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.torrent-widget-progress-bar {
  flex: 1;
  height: 14px;
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 1px;
  box-sizing: border-box;
  overflow: hidden;
}

.torrent-widget-progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #000080 0px,
    #000080 7px,
    #ffffff 7px,
    #ffffff 9px
  );
  transition: width 0.3s ease-out;
}

.torrent-widget-percent-text {
  font-size: 11px;
  font-weight: bold;
  min-width: 32px;
  text-align: right;
  color: #000080;
}

/* Actions Row */
.torrent-widget-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin-top: 2px;
}

.torrent-widget-btn {
  flex: 1;
  padding: 2px 4px;
  font-size: 10px;
  font-family: inherit;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

/* Collapsible Multi-torrents List */
.torrent-widget-list {
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  max-height: 120px;
  overflow-y: auto;
  padding: 3px;
  margin-top: 2px;
  box-sizing: border-box;
}

.torrent-widget-list-empty {
  color: #777777;
  font-style: italic;
  text-align: center;
  padding: 6px;
  font-size: 10px;
}

.torrent-widget-list-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.torrent-widget-list-item {
  padding-bottom: 3px;
  border-bottom: 1px dotted #d0d0d0;
  font-size: 10px;
}

.torrent-widget-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.torrent-widget-list-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  color: #000000;
}

.torrent-widget-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.torrent-widget-list-bar {
  flex: 1;
  height: 6px;
  background-color: #e4e4e4;
  border: 1px solid #808080;
  overflow: hidden;
}

.torrent-widget-list-bar-fill {
  height: 100%;
  background-color: #000080;
}

.torrent-widget-list-speed {
  font-size: 9px;
  color: #333333;
  min-width: 50px;
  text-align: right;
}

/* Slim Mode (when collapsed) */
.torrent-widget-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 3px 4px;
  font-size: 10px;
  height: 20px;
  box-sizing: border-box;
}

.torrent-widget-slim-speed {
  font-size: 10px;
  color: #006600;
  font-weight: bold;
  white-space: nowrap;
}

.torrent-widget-slim-mini-bar {
  flex: 1;
  height: 9px;
  background-color: #ffffff;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  padding: 1px;
  box-sizing: border-box;
  overflow: hidden;
}

.torrent-widget-slim-mini-fill {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #000080 0px,
    #000080 5px,
    #ffffff 5px,
    #ffffff 7px
  );
}

.torrent-widget-slim-pct {
  font-size: 10px;
  font-weight: bold;
  color: #000080;
  min-width: 24px;
  text-align: right;
}

.torrent-widget-slim-expand-btn {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  background-color: var(--win-gray, #c0c0c0);
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}








