/* === WINDOWS NT 4.0 AESTHETIC === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #008080;
  font-family: Tahoma, "MS Sans Serif", Geneva, sans-serif;
  font-size: 11px;
  color: #000;
  cursor: default;
  user-select: none;
}

/* Desktop Icons */
.desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 28px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 16px;
}

.desktop-icon {
  width: 72px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
  padding: 4px;
  border: 1px dotted transparent;
}

.desktop-icon:hover {
  border: 1px dotted #fff;
}

.desktop-icon:active {
  background: #000080;
  border: 1px dotted #fff;
}

.desktop-icon .icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.desktop-icon .label {
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
}

/* Classic Window */
.window {
  position: absolute;
  background: #c0c0c0;
  border: 2px outset #fff;
  box-shadow: 1px 1px 0 #000;
  min-width: 320px;
}

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

.title-bar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  padding: 2px 3px 3px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.title-bar.inactive {
  background: linear-gradient(90deg, #808080 0%, #a0a0a0 100%);
  color: #c0c0c0;
}

.title-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

.title-text .icon {
  font-size: 14px;
}

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

.title-btn {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px outset #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.title-btn:active {
  border: 1px inset #808080;
}

.window-body {
  padding: 8px;
  border: 1px inset #c0c0c0;
  margin: 3px;
  background: #c0c0c0;
}

/* Menu bar */
.menu-bar {
  display: flex;
  gap: 0;
  padding: 1px 0;
  border-bottom: 1px solid #808080;
  margin-bottom: 6px;
}

.menu-item {
  padding: 2px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* 3D Panels */
.panel {
  border: 2px inset #fff;
  background: #fff;
  padding: 8px;
  margin-bottom: 8px;
}

.panel-gray {
  background: #c0c0c0;
  border: 2px inset #c0c0c0;
  padding: 8px;
}

/* Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: #c0c0c0;
  border: 1px inset #fff;
}

.status-item .led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #404040;
  box-shadow: inset -1px -1px 2px rgba(255,255,255,0.5), inset 1px 1px 2px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.led-green {
  background: #00c000;
}

.led-red {
  background: #c00000;
}

.led-yellow {
  background: #c0c000;
}

/* Classic Buttons */
.btn {
  background: #c0c0c0;
  border: 2px outset #fff;
  padding: 4px 12px;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  cursor: pointer;
  color: #000;
  min-width: 75px;
  text-align: center;
}

.btn:active {
  border: 2px inset #808080;
  padding: 5px 11px 3px 13px;
}

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

/* Progress bar NT style */
.progress-container {
  border: 1px inset #c0c0c0;
  background: #fff;
  height: 18px;
  padding: 1px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #000080;
  width: 0%;
  transition: width 0.3s;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #000;
  mix-blend-mode: difference;
  color: #fff;
}

/* Separator */
hr.sep {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 8px 0;
}

/* Taskbar */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #c0c0c0;
  border-top: 2px outset #fff;
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 3px;
  z-index: 9999;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  height: 22px;
}

.start-btn:active {
  border: 2px inset #808080;
}

.start-btn .flag {
  font-size: 14px;
  line-height: 1;
}

.taskbar-divider {
  width: 1px;
  height: 22px;
  border-left: 1px solid #808080;
  border-right: 1px solid #fff;
  margin: 0 2px;
}

.taskbar-item {
  padding: 2px 8px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-size: 11px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.taskbar-item.active {
  border: 2px inset #808080;
  background: #d4d0c8;
}

.tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 2px inset #c0c0c0;
  height: 22px;
  background: #c0c0c0;
}

.tray-icon {
  font-size: 14px;
}

.clock {
  font-size: 11px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  min-width: 60px;
  text-align: center;
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.blink {
  animation: blink 2s infinite;
}

/* Window positioning */
#win-main {
  top: 40px;
  left: 100px;
  width: 420px;
}

#win-info {
  top: 60px;
  left: 540px;
  width: 320px;
}

/* Responsive */
@media (max-width: 600px) {
  #win-main, #win-info {
    position: relative;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    margin-bottom: 10px;
  }
  .desktop {
    flex-direction: row;
    flex-wrap: wrap;
    bottom: 28px;
    overflow-y: auto;
  }
}

/* Selection color */
::selection {
  background: #000080;
  color: #fff;
}
