/**
 * Win 98 System Tools Styles: MSConfig, DxDiag, SysEdit, CharMap, ScanDisk, SndVol32, Windowed DOS
 */

/* ========================================================
   MSConfig (System Configuration Utility)
   ======================================================== */
.msconfig-startup-list {
  height: 180px;
  background: #ffffff;
  border: 2px inset #ffffff;
  overflow-y: auto;
  font-size: 11px;
}

.msconfig-startup-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-bottom: 1px dotted #e0e0e0;
}

.msconfig-startup-item:hover {
  background: #f0f0f0;
}

/* ========================================================
   DxDiag (DirectX Diagnostic Tool)
   ======================================================== */
.dxdiag-info-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.dxdiag-info-table td {
  padding: 3px 6px;
  vertical-align: top;
}

.dxdiag-info-label {
  color: #555555;
  width: 130px;
}

.dxdiag-info-val {
  font-weight: bold;
}

.dxdiag-3d-viewport {
  width: 180px;
  height: 120px;
  background: #000000;
  border: 2px inset #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
}

/* ========================================================
   SysEdit (System Configuration Editor - MDI)
   ======================================================== */
.sysedit-mdi-container {
  position: relative;
  width: 100%;
  height: 380px;
  background: #808080;
  overflow: hidden;
  border: 2px inset #ffffff;
}

.sysedit-subwindow {
  position: absolute;
  background: var(--win-bg);
  border: 2px outset #ffffff;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.sysedit-subwindow-title {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.sysedit-subwindow-title.inactive {
  background: linear-gradient(90deg, #808080, #a0a0a0);
}

.sysedit-subwindow-body {
  flex: 1;
  padding: 2px;
  display: flex;
  background: #ffffff;
}

.sysedit-textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  resize: none;
  white-space: pre;
  overflow: auto;
}

/* ========================================================
   CharMap (Character Map)
   ======================================================== */
.charmap-grid-container {
  width: 320px;
  height: 200px;
  background: #ffffff;
  border: 2px inset #ffffff;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 1px;
  padding: 2px;
  font-size: 12px;
  user-select: none;
}

.charmap-cell {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d0c8;
  cursor: pointer;
}

.charmap-cell:hover {
  border-color: #000080;
  background: #e8f0fe;
}

.charmap-cell.selected {
  background: #000080;
  color: #ffffff;
  border-color: #000000;
}

.charmap-magnifier {
  width: 38px;
  height: 38px;
  background: #ffffea;
  border: 2px outset #ffffff;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

/* ========================================================
   ScanDisk (Drive Scanner)
   ======================================================== */
.scandisk-sector-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 2px;
  background: #ffffff;
  border: 2px inset #ffffff;
  padding: 6px;
  margin: 8px 0;
  height: 110px;
  overflow-y: auto;
}

.scandisk-cluster {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 1px solid #c0c0c0;
}

.scandisk-cluster.checked {
  background: #000080;
}

.scandisk-cluster.bad {
  background: #ff0000;
}

.scandisk-cluster.system {
  background: #00aa00;
}

.scandisk-cluster.current {
  background: #ffff00;
  box-shadow: 0 0 2px #ff0000;
}

/* ========================================================
   Volume Control (sndvol32)
   ======================================================== */
.sndvol-container {
  display: flex;
  background: var(--win-bg);
  padding: 4px;
  flex: 1;
  box-sizing: border-box;
}

.sndvol-channel {
  flex: 1;
  width: 78px;
  border-right: 1px solid #808080;
  border-left: 1px solid #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 6px 8px 6px;
  box-sizing: border-box;
}

.sndvol-channel:first-child {
  border-left: none;
}

.sndvol-channel:last-child {
  border-right: none;
}

.sndvol-label {
  font-size: 10px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 4px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sndvol-balance {
  width: 58px;
  margin: 4px 0;
}

.sndvol-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 105px;
  margin: 4px 0 8px 0;
}

.sndvol-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 22px;
  height: 96px;
}

/* ========================================================
   Windowed MS-DOS Prompt (command.com)
   ======================================================== */
.dosprompt-window-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #000000;
}

.dosprompt-toolbar {
  background: var(--win-bg);
  border-bottom: 1px solid #808080;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
}

.dosprompt-tool-btn {
  padding: 2px 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px outset #ffffff;
  background: var(--win-bg);
  cursor: pointer;
  user-select: none;
}

.dosprompt-tool-btn:active {
  border-style: inset;
}

.dosprompt-console-body {
  flex: 1;
  background: #000000;
  color: #c0c0c0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.3;
  padding: 6px;
  overflow-y: auto;
  cursor: text;
}

.dosprompt-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.dosprompt-input-row {
  display: flex;
  align-items: center;
}

.dosprompt-cli-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  caret-color: #ffffff;
  padding: 0;
  margin-left: 4px;
}

