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

html, body {
  height: 100%;
  background-color: #050705;
  color: #33ff66;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
}

/* Subtle CRT screen texture */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  z-index: 99;
}

.terminal-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a3320;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #559966;
}

.term-status {
  color: #33ff66;
}

.term-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scroll-behavior: smooth;
}

/* Scrollbar */
.term-body::-webkit-scrollbar {
  width: 4px;
}
.term-body::-webkit-scrollbar-track {
  background: transparent;
}
.term-body::-webkit-scrollbar-thumb {
  background: #1a3320;
}

/* Terminal Log Entry: Clean timestamp, IP, and prompt */
.log-line {
  margin-bottom: 5px;
  word-break: break-word;
  white-space: pre-wrap;
}

.log-time {
  color: #556655;
  margin-right: 8px;
  font-size: 12px;
}

.log-ip {
  color: #00bb55;
  margin-right: 8px;
}

.log-prompt {
  color: #e0ffe0;
}

/* Input Row */
.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #1a3320;
  margin-top: 8px;
}

.prompt-sym {
  color: #33ff66;
  font-weight: bold;
}

#term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0ffe0;
  font-family: inherit;
  font-size: 13px;
}

#term-input::placeholder {
  color: #2b4731;
}
