* {
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: #0a0a0a;
  margin: 0;
  padding: 0;
}

.text-primary {
  color: #39ff14;
}

.text-error {
  color: #ff3333;
}

.glow {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.3);
}

.terminal-window {
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  border-radius: 8px;
}

.terminal-body {
  position: relative;
}

.terminal-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.1;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #39ff14;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  caret-color: transparent;
}

.terminal-input::placeholder {
  color: #444;
}

.terminal-input:disabled {
  opacity: 0.5;
}

.terminal-btn {
  background: transparent;
  border: 1px solid #39ff14;
  color: #39ff14;
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

.terminal-btn:hover:not(:disabled) {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.terminal-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

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

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 9999;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

@media (max-width: 640px) {
  .terminal-body {
    font-size: 12px;
  }
  
  .terminal-input {
    font-size: 12px;
  }
  
  pre {
    font-size: 8px !important;
  }
}