/* Custom Windows 98 Stylesheet */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  image-rendering: pixelated;
}

/* Scrollbar Styling for Retro Look */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
::-webkit-scrollbar-track {
  background: #dfdfdf url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="2" height="2" fill="%23ffffff"/><rect x="2" y="2" width="2" height="2" fill="%23ffffff"/><rect x="2" width="2" height="2" fill="%23c0c0c0"/><rect y="2" width="2" height="2" fill="%23c0c0c0"/></svg>');
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}
::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-top: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  border-right: 1.5px solid #808080;
  border-bottom: 1.5px solid #808080;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #0a0a0a;
}
::-webkit-scrollbar-button {
  background: #c0c0c0;
  width: 16px;
  height: 16px;
  border-top: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
  border-right: 1.5px solid #808080;
  border-bottom: 1.5px solid #808080;
  display: block;
}

body {
  font-family: 'Tahoma', 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 12px;
  color: #000000;
  background-color: #008080; /* Default classic Win98 Teal */
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: none;
}

/* Themes */
body.theme-default { background-color: #008080; }
body.theme-blue { background-color: #3b5998; }
body.theme-dark { background-color: #202020; }
body.theme-hotdog { background-color: #ff0000; }
body.theme-rose { background-color: #a05a7c; }

/* 3D Bevel Classes */
.win-bevel-out {
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #0a0a0a, 1px 1px 0px #000000;
}

.win-bevel-in {
  background-color: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0px #000000, inset -1px -1px 0px #dfdfdf;
}

/* Desktop Styles */
.desktop {
  width: 100vw;
  height: calc(100vh - 28px); /* Account for taskbar */
  position: relative;
  overflow: hidden;
  padding: 10px;
}

/* Icon Grid Layout */
.desktop-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 75px);
  grid-template-rows: repeat(auto-fill, 75px);
  grid-auto-flow: column;
  gap: 15px 10px;
  height: 100%;
  width: max-content;
  max-width: 100%;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 75px;
  height: 75px;
  cursor: pointer;
  outline: none;
  border: 1px solid transparent;
  padding: 2px;
}

.desktop-icon:focus,
.desktop-icon.selected {
  /* Classic win98 selection box */
}

.desktop-icon:focus .icon-label,
.desktop-icon.selected .icon-label {
  background-color: #000080;
  color: #ffffff;
  border: 1px dotted #ffff00;
}

.desktop-icon:focus .win98-icon,
.desktop-icon.selected .win98-icon {
  filter: opacity(0.7) drop-shadow(0 0 0 #000080);
}

.icon-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.win98-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.icon-label {
  color: #ffffff;
  font-size: 11px;
  padding: 2px 4px;
  word-break: break-word;
  max-height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

/* Windows System */
.win-window {
  position: absolute;
  min-width: 200px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #0a0a0a, 1px 1px 0px #000000;
}

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

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

.win-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 3px 5px;
  color: #c0c0c0;
  font-weight: bold;
  height: 20px;
  cursor: default;
  /* Inactive blue/gray titlebar */
  background: #808080;
}

.win-window.active .win-title-bar {
  /* Active classic Win98 titlebar gradient */
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
}

.title-bar-text {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-bar-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.win-control-btn {
  width: 16px;
  height: 14px;
  font-family: inherit;
  font-size: 9px;
  font-weight: bold;
  background-color: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000000;
  outline: none;
}

.win-control-btn:active {
  border-color: #555555 #ffffff #ffffff #555555;
  box-shadow: inset 1px 1px 0px #000000;
  padding-left: 1px;
  padding-top: 1px;
}

.win-control-btn.close {
  margin-left: 2px;
}

/* Menu Bar */
.win-menu-bar {
  display: flex;
  background-color: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 2px 5px;
  gap: 10px;
}

.win-menu-item {
  position: relative;
  padding: 2px 6px;
  cursor: pointer;
}

.win-menu-item:hover,
.win-menu-item.active {
  background-color: #000080;
  color: #ffffff;
}

/* Dropdown Menu inside window menu bar */
.win-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #000000, 1px 1px 0px #000000;
  display: none;
  flex-direction: column;
  z-index: 150;
  min-width: 120px;
}

.win-menu-item.active .win-menu-dropdown {
  display: flex;
}

.dropdown-item {
  padding: 4px 15px;
  color: #000000;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dropdown-item:hover {
  background-color: #000080;
  color: #ffffff;
}

.dropdown-divider {
  height: 1px;
  background-color: #808080;
  border-bottom: 1px solid #ffffff;
  margin: 3px 0;
}

/* Window Content Body */
.win-window-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  background-color: #dfdfdf;
}

.win-status-bar {
  display: flex;
  background-color: #c0c0c0;
  border-top: 1.5px solid #808080;
  padding: 2px 4px;
  font-size: 11px;
  gap: 4px;
}

.win-status-cell {
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 2px 6px;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-status-cell.fixed {
  flex-grow: 0;
  min-width: 80px;
}

/* Buttons */
.win-btn {
  background-color: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #000000, 1px 1px 0px #000000;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.win-btn:active, .win-btn.pressed {
  border-color: #555555 #ffffff #ffffff #555555;
  box-shadow: inset 1px 1px 0px #000000, 1px 1px 0px #ffffff;
  padding: 5px 9px 3px 11px;
}

.win-btn:focus {
  outline: 1px dotted #000000;
  outline-offset: -4px;
}

.dialog-btn {
  min-width: 75px;
}

/* Inputs, Textareas */
.win-input {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0px #000000, inset -1px -1px 0px #dfdfdf;
  background-color: #ffffff;
  padding: 4px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

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

/* Radios */
.win-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.win-radio input {
  display: none;
}

.win-radio span::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 6px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0px #000000;
  background-color: #ffffff;
  border-radius: 50%;
}

.win-radio input:checked + span::before {
  background: radial-gradient(circle, #000 30%, #fff 40%);
}

/* Window Resize Handle */
.win-resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 0;
  bottom: 0;
  cursor: se-resize;
  z-index: 10;
  background: linear-gradient(135deg, transparent 40%, #808080 40%, #808080 50%, transparent 50%, transparent 60%, #808080 60%, #808080 70%, transparent 70%, transparent 80%, #808080 80%, #808080 90%, transparent 90%);
}

/* Taskbar Styles */
.taskbar {
  height: 28px;
  width: 100vw;
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  box-shadow: 0 -1px 0 #808080;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 6px;
  z-index: 1000;
}

.start-button {
  height: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}

.start-text {
  font-size: 11px;
}

.win-flag {
  width: 15px;
  height: 15px;
}

.taskbar-tasks {
  flex-grow: 1;
  display: flex;
  gap: 4px;
  height: 100%;
  overflow: hidden;
}

.taskbar-task-btn {
  max-width: 150px;
  flex-grow: 1;
  height: 22px;
  font-family: inherit;
  font-size: 11px;
  font-weight: normal;
  text-align: left;
  justify-content: flex-start;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 2px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #000000;
}

.taskbar-task-btn.active {
  background-color: #e0e0e0;
  border-color: #555555 #ffffff #ffffff #555555;
  box-shadow: inset 1px 1px 0px #000000, 1px 1px 0px #ffffff;
  font-weight: bold;
  padding-left: 9px;
  padding-top: 1px;
}

.system-tray {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0px #000000;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 6px;
  background-color: #c0c0c0;
}

.tray-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tray-icon {
  width: 14px;
  height: 14px;
}

.system-clock {
  font-size: 11px;
  white-space: nowrap;
}

/* Start Menu Popup */
.start-menu {
  position: absolute;
  bottom: 28px;
  left: 2px;
  width: 180px;
  z-index: 2000;
  display: flex;
}

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

.sidebar-text {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
}

.sidebar-text .version-num {
  font-style: italic;
  color: #c0c0c0;
}

.start-options {
  flex-grow: 1;
  background-color: #c0c0c0;
  padding: 2px;
  display: flex;
  flex-direction: column;
}

.start-item {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.start-item:hover {
  background-color: #000080;
  color: #ffffff;
}

.start-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 8px;
}

.menu-divider {
  height: 1px;
  background-color: #808080;
  border-bottom: 1px solid #ffffff;
  margin: 2px 1px;
}

/* Submenus */
.start-item .submenu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 160px;
  background-color: #c0c0c0;
  display: none;
  flex-direction: column;
  padding: 2px;
  z-index: 2100;
}

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

.submenu-item {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  gap: 8px;
  cursor: pointer;
  color: #000000;
}

.submenu-item:hover {
  background-color: #000080;
  color: #ffffff;
}

/* Context Menus */
.context-menu {
  position: absolute;
  width: 130px;
  background-color: #c0c0c0;
  z-index: 3000;
  padding: 2px;
  display: flex;
  flex-direction: column;
}

.menu-item {
  padding: 4px 10px;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #000080;
  color: #ffffff;
}

/* Dialog Boxes & Overlays */
.shutdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  /* Retro scanline overlay effect */
  background-image: radial-gradient(circle, transparent 20%, #000000 20%, #000000 21%, transparent 21%),
                    radial-gradient(circle, transparent 20%, #000000 20%, #000000 21%, transparent 21%);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.shutdown-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  text-align: center;
}

.logo-text {
  font-size: 36px;
  color: #1084d0;
  text-shadow: 2px 2px 4px #000000;
  margin-bottom: 20px;
  font-family: 'Share Tech Mono', monospace;
}

.status-msg, .ready-msg {
  font-size: 16px;
  font-family: 'Courier New', monospace;
}

.ready-msg {
  color: #ff9900;
}

.restart-timer {
  margin-top: 20px;
  font-size: 14px;
  color: #808080;
}

/* Utility Hidden state */
.hidden {
  display: none !important;
}

/* App-Specific Layouts */

/* 1. Notepad */
.notepad-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.notepad-textarea {
  flex-grow: 1;
  border: none;
  outline: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  padding: 5px;
  resize: none;
  white-space: pre;
  overflow: auto;
}

/* 2. Paint */
.paint-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #808080;
}

.paint-toolbar {
  height: 36px;
  background-color: #c0c0c0;
  border-bottom: 2px solid #ffffff;
  display: flex;
  align-items: center;
  padding: 0 5px;
  gap: 8px;
}

.paint-tools {
  display: flex;
  gap: 4px;
}

.paint-tool-btn {
  width: 24px;
  height: 22px;
  font-size: 11px;
}

.paint-brush-sizes {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brush-size-btn {
  background-color: #000000;
  border: 1px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
}

.brush-size-btn.active {
  outline: 2px solid #000080;
}

.paint-canvas-wrapper {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.paint-canvas-bevel {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background-color: #ffffff;
}

.paint-canvas {
  display: block;
  cursor: crosshair;
  background-color: #ffffff;
}

.paint-color-bar {
  height: 40px;
  background-color: #c0c0c0;
  border-top: 2px solid #ffffff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
}

.active-colors {
  width: 28px;
  height: 28px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  position: relative;
  background-color: #ffffff;
  flex-shrink: 0;
}

.active-color-foreground {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 2px;
  left: 2px;
  border: 1px solid #000;
  z-index: 2;
}

.active-color-background {
  width: 14px;
  height: 14px;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 1px solid #000;
  z-index: 1;
}

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

.palette-color {
  width: 14px;
  height: 14px;
  border: 1px solid #808080;
  cursor: pointer;
}

/* 3. Calculator */
.calc-container {
  padding: 10px;
  background-color: #c0c0c0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 250px;
}

.calc-display {
  height: 32px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background-color: #ffffff;
  text-align: right;
  padding: 6px;
  font-family: 'Share Tech Mono', 'Courier Prime', monospace;
  font-size: 16px;
  color: #000;
  outline: none;
}

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

.calc-btn {
  height: 32px;
  font-weight: bold;
  font-size: 12px;
  color: #000;
}

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

.calc-btn.ctrl {
  color: #0000ff;
}

/* 4. Minesweeper */
.mine-container {
  background-color: #c0c0c0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.mine-header {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 4px 6px;
  background-color: #c0c0c0;
}

.mine-counter-led {
  background-color: #000000;
  color: #ff0000;
  font-family: 'VT323', monospace;
  font-size: 22px;
  padding: 0 4px;
  border: 1px solid #808080;
  min-width: 45px;
  text-align: center;
  letter-spacing: 1px;
}

.mine-smiley-btn {
  width: 26px;
  height: 26px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mine-grid-border {
  border: 2.5px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.mine-grid {
  display: grid;
  background-color: #808080;
  gap: 0;
}

.mine-cell {
  width: 16px;
  height: 16px;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background-color: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  cursor: default;
}

.mine-cell.revealed {
  border: 0.5px solid #808080;
  background-color: #c0c0c0;
}

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

.mine-cell.flagged::before {
  content: '🚩';
  font-size: 9px;
}

.mine-cell.c-1 { color: #0000ff; }
.mine-cell.c-2 { color: #008000; }
.mine-cell.c-3 { color: #ff0000; }
.mine-cell.c-4 { color: #000080; }
.mine-cell.c-5 { color: #800000; }
.mine-cell.c-6 { color: #008080; }
.mine-cell.c-7 { color: #000000; }
.mine-cell.c-8 { color: #808080; }

/* 5. Internet Explorer */
.ie-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ie-nav-bar {
  background-color: #c0c0c0;
  border-bottom: 2px solid #ffffff;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ie-toolbar {
  display: flex;
  gap: 4px;
}

.ie-tool-btn {
  padding: 2px 6px;
  font-size: 11px;
}

.ie-address-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ie-address-label {
  font-size: 11px;
}

.ie-address-input {
  flex-grow: 1;
  height: 20px;
}

.ie-viewport {
  flex-grow: 1;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background-color: #ffffff;
  overflow: auto;
  padding: 20px;
}

.ie-mock-page {
  font-family: 'Times New Roman', Times, serif;
  color: #000000;
  line-height: 1.4;
  user-select: text;
}

.ie-mock-page h1 {
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 1px solid #808080;
}

.ie-mock-page a {
  color: #0000ee;
  text-decoration: underline;
  cursor: pointer;
}

.ie-mock-page p {
  margin-bottom: 12px;
  font-size: 14px;
}

.ie-search-box {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

/* 6. My Computer (File Explorer) */
.explorer-container {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: #ffffff;
}

.explorer-sidebar {
  width: 120px;
  background-color: #c0c0c0;
  border-right: 2px solid #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explorer-main {
  flex-grow: 1;
  background-color: #ffffff;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 70px);
  grid-template-rows: repeat(auto-fill, 70px);
  gap: 15px;
  overflow: auto;
}

.explorer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.explorer-item:focus {
  outline: none;
}

.explorer-item:focus .explorer-label {
  background-color: #000080;
  color: #ffffff;
}

.explorer-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.explorer-label {
  font-size: 11px;
  padding: 1px 3px;
  color: #000000;
}

/* 7. Control Panel */
.cpanel-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #c0c0c0;
  width: 280px;
}

.cpanel-section {
  border: 1px solid #808080;
  padding: 10px;
  position: relative;
  margin-top: 10px;
}

.cpanel-section-title {
  position: absolute;
  top: -8px;
  left: 10px;
  background-color: #c0c0c0;
  padding: 0 4px;
  font-weight: bold;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 5px;
}

.theme-btn {
  font-size: 11px;
  padding: 6px;
}
