.retro-window {
  position: absolute;
  background: #0a0a14;
  border: 2px solid #33ff33;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.6), 0 0 12px rgba(51, 255, 51, 0.1);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  min-height: 150px;
}

.retro-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.window-titlebar {
  background: linear-gradient(90deg, #1a3a1a, #0a2a0a, #1a3a1a);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  border-bottom: 2px solid #33ff33;
  flex-shrink: 0;
}

.window-title {
  font-size: 8px;
  color: #33ff33;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding: 2px 4px;
}

.window-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.window-btn {
  width: 18px;
  height: 18px;
  border: 1px solid #33ff33;
  background: #0a1a0a;
  color: #33ff33;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  padding: 0;
  line-height: 1;
}

.window-btn:hover {
  background: rgba(51, 255, 51, 0.2);
  box-shadow: 0 0 4px rgba(51, 255, 51, 0.3);
}

.window-btn.close:hover {
  background: rgba(255, 51, 51, 0.3);
  border-color: #ff3333;
  color: #ff3333;
}

.window-body {
  flex: 1;
  overflow: auto;
  position: relative;
}

.window-resize {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  z-index: 10;
}

.window-resize::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #33ff33;
  border-bottom: 2px solid #33ff33;
}

.window-statusbar {
  background: #0a1a0a;
  border-top: 1px solid rgba(51, 255, 51, 0.3);
  padding: 3px 8px;
  font-size: 7px;
  color: rgba(51, 255, 51, 0.6);
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
