#desktop {
  width: 100%;
  height: calc(100% - 40px);
  position: relative;
  background: #1a1a2e;
  overflow: hidden;
}

#desktop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(51, 255, 51, 0.015) 3px, rgba(51, 255, 51, 0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(51, 255, 51, 0.015) 3px, rgba(51, 255, 51, 0.015) 4px);
  pointer-events: none;
}

#desktop::after {
  content: 'RetroOS';
  position: absolute;
  bottom: 80px;
  right: 40px;
  font-size: 48px;
  font-family: 'Press Start 2P', monospace;
  color: rgba(51, 255, 51, 0.06);
  text-shadow: 0 0 20px rgba(51, 255, 51, 0.04);
  pointer-events: none;
  letter-spacing: 4px;
}

#desktop-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.desktop-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  padding: 8px 4px;
  cursor: grab;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.desktop-icon:hover {
  background: rgba(51, 255, 51, 0.1);
  border-color: rgba(51, 255, 51, 0.3);
}

.desktop-icon.selected {
  background: rgba(51, 255, 51, 0.2);
  border-color: #33ff33;
}

.desktop-icon .icon {
  font-size: 28px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 4px rgba(51,255,51,0.5));
}

.desktop-icon .label {
  font-size: 7px;
  text-align: center;
  color: #ffffff;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
  line-height: 1.4;
  word-break: break-word;
}

#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border-top: 2px solid #33ff33;
  display: flex;
  align-items: center;
  padding: 0 4px;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(51, 255, 51, 0.15);
}

#start-btn {
  background: linear-gradient(180deg, #1a3a1a 0%, #0a2a0a 100%);
  border: 2px solid #33ff33;
  color: #33ff33;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  text-shadow: 0 0 4px #33ff33;
}

#start-btn:hover {
  background: linear-gradient(180deg, #2a5a2a 0%, #1a4a1a 100%);
  box-shadow: 0 0 8px rgba(51, 255, 51, 0.4);
}

#start-btn:active {
  transform: scale(0.95);
}

#taskbar-windows {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  overflow-x: auto;
  height: 100%;
}

.taskbar-item {
  background: rgba(51, 255, 51, 0.05);
  border: 1px solid rgba(51, 255, 51, 0.3);
  color: #33ff33;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  height: 26px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}

.taskbar-item:hover {
  background: rgba(51, 255, 51, 0.15);
}

.taskbar-item.active {
  background: rgba(51, 255, 51, 0.2);
  border-color: #33ff33;
  box-shadow: 0 0 6px rgba(51, 255, 51, 0.3);
}

#taskbar-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  height: 100%;
  border-left: 1px solid rgba(51, 255, 51, 0.2);
}

#taskbar-clock {
  font-size: 8px;
  color: #33ff33;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.5);
  white-space: nowrap;
}

#start-menu {
  position: absolute;
  bottom: 42px;
  left: 4px;
  width: 240px;
  background: linear-gradient(180deg, #0f1a0f 0%, #0a120a 100%);
  border: 2px solid #33ff33;
  z-index: 200;
  box-shadow: 4px -4px 16px rgba(0, 0, 0, 0.8), 0 0 12px rgba(51, 255, 51, 0.15);
}

.start-menu-header {
  background: linear-gradient(90deg, #1a3a1a, #0a2a0a);
  padding: 10px 12px;
  font-size: 10px;
  color: #33ff33;
  text-shadow: 0 0 6px #33ff33;
  border-bottom: 2px solid #33ff33;
}

#start-menu-apps {
  padding: 4px 0;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 8px;
  color: #33ff33;
}

.start-menu-item:hover {
  background: rgba(51, 255, 51, 0.15);
}

.start-menu-item .menu-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.start-menu-divider {
  height: 1px;
  background: rgba(51, 255, 51, 0.2);
  margin: 4px 0;
}

.start-menu-footer {
  padding: 8px;
  border-top: 1px solid rgba(51, 255, 51, 0.2);
}

#shutdown-btn {
  width: 100%;
  background: linear-gradient(180deg, #3a1a1a 0%, #2a0a0a 100%);
  border: 2px solid #ff3333;
  color: #ff3333;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

#shutdown-btn:hover {
  background: linear-gradient(180deg, #5a2a2a 0%, #4a1a1a 100%);
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

#context-menu {
  position: absolute;
  background: linear-gradient(180deg, #0f1a0f 0%, #0a120a 100%);
  border: 2px solid #33ff33;
  z-index: 300;
  min-width: 160px;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.8);
}

.context-item {
  padding: 8px 12px;
  font-size: 8px;
  color: #33ff33;
  cursor: pointer;
  transition: background 0.1s;
}

.context-item:hover {
  background: rgba(51, 255, 51, 0.15);
}

.context-divider {
  height: 1px;
  background: rgba(51, 255, 51, 0.2);
}
