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

body {
  background: #000088;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #AAAAAA;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar-track {
  background: #000055;
  border-left: 1px solid #0000AA;
}
::-webkit-scrollbar-thumb {
  background: #555555;
  border: 2px solid #000055;
}
::-webkit-scrollbar-thumb:hover {
  background: #777777;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.crt-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.crt-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 10;
}

.crt-overlay::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  bottom: -100%;
  background: linear-gradient(
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 11;
}

.phosphor-green {
  filter: hue-rotate(90deg) saturate(2) brightness(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 30px rgba(0, 255, 0, 0.1);
}

.phosphor-amber {
  filter: sepia(1) saturate(2) brightness(1.1) hue-rotate(-10deg);
  box-shadow: 0 0 20px rgba(255, 176, 0, 0.3), inset 0 0 30px rgba(255, 176, 0, 0.1);
}

.dos-box {
  border: 2px solid #AAAAAA;
  position: relative;
}

.dos-box-double {
  border: 3px double #AAAAAA;
}

.dos-button {
  background: #AAAAAA;
  color: #000000;
  border: none;
  padding: 4px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.05s;
}

.dos-button:hover {
  background: #FFFFFF;
}

.dos-button:active {
  box-shadow: 0px 0px 0px #000000;
  transform: translate(2px, 2px);
}

.dos-button-highlight {
  background: #FFFF55;
  color: #000000;
}

.dos-button-highlight:hover {
  background: #FFFF88;
}

.drop-zone {
  border: 3px dashed #555555;
  transition: all 0.2s;
}

.drop-zone.drag-over {
  border-color: #FFFF55;
  background: rgba(255, 255, 85, 0.05);
}

.code-area {
  background: #0000AA;
  color: #FFFF55;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow: auto;
  white-space: pre;
  tab-size: 4;
}

.keyword { color: #FFFFFF; font-weight: bold; }
.number { color: #55FFFF; }
.string { color: #FF5555; }
.comment { color: #555555; }

.progress-bar-track {
  background: #333333;
  font-family: 'IBM Plex Mono', monospace;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

.loading-dots::after {
  content: '';
  animation: dots 1.5s step-end infinite;
}

.palette-color {
  width: 20px;
  height: 20px;
  border: 1px solid #555;
  cursor: pointer;
  transition: transform 0.1s;
}

.palette-color:hover {
  transform: scale(1.3);
  z-index: 5;
  border-color: #FFF;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.header-bar {
  background: linear-gradient(180deg, #0000CC 0%, #000088 100%);
  border-bottom: 2px solid #5555FF;
}

.settings-panel {
  background: #000066;
  border: 2px solid #5555FF;
}

@media (max-width: 768px) {
  .code-area {
    font-size: 11px;
  }
}