@font-face {
  font-family: 'CPC';
  src: url('fonts/cpc.ttf') format('truetype');
  font-display: swap;
}

body {
  margin: 0;
  background: #111;
  font-family: 'CPC', monospace;
  color: #33ff33;
}

.layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 260px;
  background: #000;
  border-right: 2px solid #33ff33;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0,255,0,0.2);
}

.clock {
  width: 100%;
  text-align: left;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #33ff33;
  text-shadow: 0 0 6px #33ff33;
}

.logo-img {
  width: 140px;
  margin-bottom: 20px;
}

.brand h1 {
  font-size: 16px;
  margin: 0;
  color: #33ff33;
}

.brand h2 {
  font-size: 12px;
  margin-top: 10px;
  color: #00ffcc;
}

.system-info {
  margin-top: 20px;
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.monitor-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cpc-logo-top {
  width: 240px;
  margin-bottom: 12px;
  opacity: 0.95;
}

.screen {
  width: 700px;
  height: 420px;
  padding: 20px;
  border-radius: 20px / 12px;
  box-shadow:
    0 0 20px rgba(0,255,0,0.2),
    inset 0 0 20px rgba(0,0,0,0.8);
  overflow: hidden;
  position: relative;
  font-family: 'CPC', monospace;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 1px;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

.mode1 {
  background: #000;
  color: #33ff33;
  text-shadow: 0 0 6px #33ff33;
}

.mode2 {
  background: #0000aa;
  color: #ffff00;
  text-shadow: none;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0,0,0,0.4) 100%
  );
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

#boot {
  position: absolute;
  inset: 0;
  padding: 20px;
}

#terminal {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#output {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  scrollbar-width: none;
}

#output::-webkit-scrollbar {
  display: none;
}

.editor-status {
  border-top: 1px solid currentColor;
  margin-top: 6px;
  padding-top: 6px;
  font-size: 12px;
  opacity: 0.9;
}

.input-line {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.prompt {
  margin-right: 5px;
}

input {
  background: transparent;
  border: none;
  color: inherit;
  font-family: 'CPC', monospace;
  font-size: 16px;
  outline: none;
  width: 100%;
}

.cursor {
  width: 10px;
  height: 18px;
  background: currentColor;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.editor-mode #output {
  border: 1px solid currentColor;
  padding: 8px;
}

.editor-mode .prompt {
  color: currentColor;
}

@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #33ff33;
  }

  .main {
    padding: 10px;
  }

  .screen {
    width: 100%;
    height: 400px;
  }
}
