/* ================================
   ESTILO GLOBAL IBM RETRO
   ================================ */

body {
    background: #000;
    color: #33ff33;
    font-family: "IBM Plex Mono", monospace;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

body, pre, code, input {
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1;
}

pre {
    white-space: pre;
}

/* ================================
   CONTENEDOR PRINCIPAL 80x24
   ================================ */

.terminal {
    width: 960px;     /* 80 columnas */
    height: 576px;    /* 24 líneas */
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    background: #000;
    overflow: hidden;
    text-shadow: 0 0 5px #33ff33;
}

/* ================================
   EFECTO CRT (scanlines)
   ================================ */

.terminal::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        transparent 2px,
        transparent 4px
    );
}

.terminal input {
    position: absolute;
    font-family: "Courier New", monospace;
    font-size: 16px;
    background: transparent;
    color: #00ff00;
    border: none;
    outline: none;
}


/* ================================
   CUADROS ASCII
   ================================ */

.box {
    white-space: pre;
    line-height: 24px;
    font-size: 18px;
}

/* ================================
   CAMPOS DE ENTRADA RETRO
   ================================ */

input, select {
    background: transparent;
    border: none;
    color: #33ff33;
    font-family: inherit;
    font-size: 18px;
    outline: none;
    text-shadow: 0 0 5px #33ff33;
}

/* Posicionamiento absoluto para inputs IBM */
.field {
    position: absolute;
    font-size: 18px;
}

/* ================================
   BARRA INFERIOR
   ================================ */

.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-left: 5px;
    background: #000;
    color: #33ff33;
    font-size: 16px;
    line-height: 20px;
}

/* ================================
   HOTKEYS
   ================================ */

.hotkeys {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    padding-left: 5px;
    font-size: 16px;
}

/* ================================
   CURSOR PARPADEANTE (preparado)
   ================================ */

.cursor-block {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: #33ff33;
    animation: blink 1s steps(1) infinite;
}

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

/* ================================
   FILA SELECCIONADA EN LISTADOS
   ================================ */

.selected {
    background: #33ff33;
    color: #000;
}

.header, .footer {
    color: #33ff33;
    font-family: "IBM Plex Mono", monospace;
    text-shadow: 0 0 5px #33ff33;
    white-space: pre;
    font-size: 18px;
}
.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.header pre, .footer pre {
    width: 960px;
    margin: 0;
}
/* =======================================
   FILA COLOREADA EN GARANTIA CADUCADOS
   ======================================= */
.box span.red { color: #ff4040; }
.box span.yellow { color: #ffff40; }
.box span.green { color: #40ff40; }
