/* Importamos una tipografía pixelada retro directamente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Variables de color para facilitar cambios estéticos */
:root {
  --bg-dark: #120e1c;
  --panel-bg: #1b1429;
  --neon-pink: #ff79c6;
  --pastel-pink: #ffb7c5;
  --lila-text: #e2c2ff;
  --cyber-green: #50fa7b;
  --alert-red: #ff5555;
}
/* Estilos generales del fondo ajustados para no romper tu página */
.pagee {
  width: 92%;
  max-width: 1200px;
  place-items: center;
}
/* Contenedor principal de la terminal: Efecto Monitor CRT */
.terminal-container {
  background-color: var(--panel-bg);
  border: 4px double var(--pastel-pink); /* Doble borde estilo juego retro */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 11b, 197, 0.2), 
              inset 0 0 15px rgba(255, 11b, 197, 0.1);
  font-family: 'VT323', monospace; /* Cambiado a fuente pixelada */
  letter-spacing: 1px;
  color: var(--pastel-pink);
  max-width: 550px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Efecto de línea de escaneo que sube y baja (Scanline) */
.terminal-container::before {
  content: " ";
  display: block;
  position: absolute;
  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.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 10;
  background-size: 100% 20px, 34px 100%;
  pointer-events: none; /* Permite hacer clic a través del efecto */
}

/* Cabecera superior animada */
.terminal-header {
  border-bottom: 2px dashed var(--pastel-pink);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  text-shadow: 0 0 5px var(--neon-pink);
}

/* Área donde vive el gatito de texto */
.ascii-pet-space {
  white-space: pre;
  background-color: #110a1c;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  color: #fff0f5;
  font-size: 20px;
  margin-bottom: 20px;
  border: 1px dashed rgba(255, 183, 197, 0.3);
  text-shadow: 0 0 8px var(--neon-pink);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  line-height: 1.3;
}

/* Contenedores de las barras de estado */
.status-bars {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  font-size: 20px;
}

.bar-container {
  background: #0f0a18;
  border: 1px solid var(--pastel-pink);
  width: 90px;
  height: 14px;
  display: inline-block;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
  margin-left: 5px;
}

/* El Relleno Neón Fluo de las barras */
.bar-fill {
  background: linear-gradient(90deg, var(--neon-pink), #ff9abc);
  height: 100%;
  box-shadow: 0 0 8px var(--neon-pink);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animación más orgánica */
}

/* Caja de historial de la terminal */
.terminal-output {
  height: 160px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--lila-text);
  padding-right: 8px;
  border-bottom: 1px solid rgba(255, 183, 197, 0.1);
}

/* Scrollbar retro estilizada */
.terminal-output::-webkit-scrollbar {
  width: 6px;
}
.terminal-output::-webkit-scrollbar-track {
  background: var(--panel-bg);
}
.terminal-output::-webkit-scrollbar-thumb {
  background: var(--pastel-pink);
  border-radius: 10px;
  box-shadow: 0 0 5px var(--neon-pink);
}

/* Línea de comandos e Input de texto */
.input-line {
  display: flex;
  align-items: center;
  font-size: 22px;
}

.prompt-symbol {
  color: var(--neon-pink);
  margin-right: 8px;
  text-shadow: 0 0 5px var(--neon-pink);
  animation: pulse 1.5s infinite alternate; /* Efecto latido sutil */
}

.terminal-input {
  background: #ffb7c578;
  border: none;
  color: #ffffff;
  font-family: 'VT323', monospace;
  font-size: 22px;
  width: 100%;
  outline: none;
  caret-color: var(--neon-pink);
  text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

/* Animaciones CSS extra */
@keyframes pulse {
  from { opacity: 0.7; }
  to { opacity: 1; text-shadow: 0 0 10px var(--neon-pink); }
}