:root {
  --text-color: #0f0;
  --cmd-color: #0ff;
  --warn-color: orange;
  --error-color: red;
  --success-color: lime;
  --caret-color: #0f0;
}

body {
  background-color: #000;
  color: #0f0;
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

#terminal {
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--text-color);
  border: 1px solid;
}

.terminal.signal {
    position: absolute;
    top: 10px;
    left: 20rem;
    background-color: #001422;
    color: #00aaff;
    border: 1px solid #005577;
    padding: 15px;
    font-family: monospace;
    width: 600px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px #00aaff77;
}

.terminal.signal .arrow-sequence {
    font-size: 1.8rem;
    margin: 12px 0;
}

.terminal.signal .input-instructions {
    font-size: 0.95rem;
    color: #88ccff;
}

.terminal.signal .success {
    color: #00ff88;
    margin-top: 5px;
}
.terminal.signal .error {
    color: #ff4444;
    margin-top: 5px;
}

.terminal.sniffer {
    position: fixed;
    top: 10vh;
    right: 10vw;
    width: 400px;
    height: 500px;
    background: #000;
    color: rgb(0, 195, 255);
    font-family: monospace;
    padding: 10px;
    box-shadow: 0 0 20px rgb(0, 195, 255);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid rgb(0, 195, 255);
    padding-bottom: 4px;
}

.terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 13px;
    white-space: pre-wrap;
}

.terminal-input {
    display: flex;
    align-items: center;
    border-top: 1px solid rgb(0, 195, 255);
    padding-top: 5px;
}

.terminal-input input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: rgb(0, 195, 255);
    font-family: monospace;
    font-size: 13px;
    outline: none;
}

.process-line {
    padding: 2px 0;
}

.terminal.ai-virus {
    background: #1a0000;
    color: #ff4b4b;
    border: 2px solid #ff0000;
    font-family: monospace;
    padding: 10px;
    width: 600px;
    height: 320px;
    overflow-y: auto;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 0 12px red;
    animation: flicker 0.2s infinite alternate;
}

.terminal.ai-virus .terminal-header {
    background: #330000;
    padding: 6px;
    font-weight: bold;
    border-bottom: 1px solid #ff0000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-eyes {
    font-size: 1.2em;
    animation: blink 2s infinite;
}

.ai-line {
    margin: 6px 0;
}

.question {
    color: #ff9999;
    font-style: italic;
}

.success {
    color: #00ff99;
}

.error {
    color: #ff3333;
    font-weight: bold;
}

.terminal-header .close-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    color: #f88;
    font-size: 20px;
    cursor: pointer;
}

.ai-input {
    background: #200;
    border: 1px solid #ff4b4b;
    color: #ff9999;
    font-family: monospace;
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
}

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

@keyframes flicker {
    0% { box-shadow: 0 0 6px red; }
    100% { box-shadow: 0 0 12px red; }
}

.terminal.leak {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    height: 400px;
    width: auto;
    overflow-y: auto;
    background-color: #1a0000;
    color: #ffcccc;
    padding: 10px;
    font-family: monospace;
    border: 1px solid #800000;
    z-index: 1000;
}

.terminal-header.red {
    background-color: #800000;
    color: #ff9999;
    font-weight: bold;
}

.inspect-block {
    background: #030;
    padding: 5px;
    margin: 5px 0;
    border: 1px dashed #0f0;
}

.terminal.ghost {
    background: #111;
    color: #ddd;
    border: 1px solid #555;
    font-family: monospace;
    padding: 10px;
    width: 700px;
    max-height: 400px;
    position: fixed;
    overflow-y: auto;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}
.terminal.ghost .terminal-header {
    background: #333;
    color: #bbb;
    padding: 5px;
    font-weight: bold;
}
.terminal.ghost .terminal-input {
    width: 95%;
    background: #000;
    color: #fff;
    border: none;
    padding: 5px;
    font-family: monospace;
}

.user-status {
  position: absolute;
  top: 10px;
  left: 20px;
  //color: var(--cmd-color);
  font-family: 'VT323', monospace;
  font-size: 12px;
  background: #222;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 0 5px #000;
  z-index: 100;
}
.user-status.hidden {
  display: none;
}

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

.line {
  margin: 2px 0;
}

#input-line {
  display: flex;
  align-items: center;
}

.prompt {
  margin-right: 5px;
}

#commandInput {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  outline: none;
  caret-color: var(--caret-color);
}

.cmd {
  color: var(--cmd-color);
}

.warn {
  color: var(--warn-color);
}

.error {
  color: var(--error-color);
}

.success {
  color: var(--success-color);
}

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

#commandInput::after {
  content: '_';
  animation: blink 1s infinite;
}

/* Domyślny wygląd */
.terminal.default {
  --text-color: #0f0;
  --cmd-color: #0ff;
  --warn-color: orange;
  --error-color: red;
  --success-color: lime;
  --caret-color: #0f0;
}

/* Amber terminal */
.terminal.amber {
    --text-color: #ffbf00;
    --cmd-color: #ffff99;
    --warn-color: #ff9900;
    --error-color: #ff4444;
    --success-color: #ccff66;
    --caret-color: #ffbf00;
}

/* Glitch Core */
.terminal.glitch {
    --text-color: #f0f;
    --cmd-color: #0ff;
    --warn-color: #ff0;
    --error-color: #f33;
    --success-color: #3f3;
    --caret-color: #f0f;
}

/* Cyber Grid */
.terminal.cyber {
    --text-color: #00ffee;
    --cmd-color: #888eff;
    --warn-color: #ffaa00;
    --error-color: #ff3333;
    --success-color: #74ff33;
    --caret-color: #00ffee;
}

/* Matrix Pulse */
.terminal.matrix {
    --text-color: rgb(0, 163, 0);
    --cmd-color: rgb(255, 0, 0);
    --warn-color: #ff0;
    --error-color: rgb(255, 149, 0);
    --success-color: #4f4;
    --caret-color: #0f0;
}

/* Styl profilu użytkownika */
.profile-window {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 350px;
  padding: 20px;
  background-color: #111;
  color: #fff;
  border: 2px solid #888;
  z-index: 9999;
  font-family: monospace;
}
.profile-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
.profile-body {
  margin-bottom: 10px;
}
.theme-option {
  margin: 5px 0;
}
.profile-window button {
  margin-top: 10px;
}