/* ========== BOOTLOADER STYLES ========== */

:root {
  --boot-font: monospace;
  --boot-bg: #000;
  --boot-text: #fff;
  --boot-secondary: #ccc;
  --z-boot: 9999;
  --z-splash: 9998;
  --boot-font-size: 14px;
}

#bios,
#bootloader,
#splashscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--boot-bg);
  color: var(--boot-text);
  font-family: var(--boot-font);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-boot);
}

/* BIOS Screen */
#bios {
  display: flex; /* default visible if needed */
}

.bios-text {
  font-size: 16px;
  text-align: center;
}

.press-key {
  margin-top: 20px;
  font-size: var(--boot-font-size);
  color: var(--boot-secondary);
  display: none;
  animation: bios-blink 1s steps(2, start) infinite;
}

/* Bootloader Output */
#bootloader {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
  overflow-y: auto;
}

.boot-text {
  white-space: pre-wrap;
  font-size: var(--boot-font-size);
  line-height: 1.5;
  max-height: 100vh;
  padding: 20px;
}

/* Splash Screen */
#splashscreen {
  z-index: var(--z-splash);
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 30px;
  animation: fadeIn 1s ease forwards;
}

.splash-loading {
  font-family: var(--boot-font);
  font-size: 16px;
  color: var(--boot-secondary);
}

.dot {
  animation: blink 1s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* ========== Animations ========== */

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

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

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
