/* ==========================================================================
   ENFINI OS BOOTLOADER STYLES
   Emulación fiel del cargador de arranque UEFI de Enfini OS
   ========================================================================== */

#bootloader-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #05070a;
  color: #c8d3f5;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#bootloader-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Efecto sutil de monitor CRT / Scanline */
#bootloader-screen::before {
  content: " ";
  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%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

.boot-container {
  width: 100%;
  max-width: 680px;
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 229, 255, 0.15);
  padding: 22px 28px;
  position: relative;
  z-index: 3;
  border-radius: var(--radius-sm);
}

.boot-header {
  text-align: center;
  margin-bottom: 16px;
}

.boot-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.boot-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
  animation: logo-glow 3s infinite ease-in-out;
}

@keyframes logo-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.25); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.55); transform: scale(1.02); }
}

.boot-divider {
  color: var(--accent-cyan);
  opacity: 0.8;
  font-size: 0.74rem;
  letter-spacing: 1px;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.boot-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
  margin: 4px 0;
}

.boot-subtitle {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.8px;
}

.boot-menu {
  list-style: none;
  margin: 18px 0;
}

.boot-item {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  margin: 4px 0;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: #a6b9d8;
  font-size: 0.84rem;
}

.boot-item .boot-pointer {
  display: inline-block;
  width: 18px;
  color: var(--accent-cyan);
  font-weight: bold;
  opacity: 0;
}

.boot-item.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.5);
  color: #ffffff;
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.15);
}

.boot-item.active .boot-pointer {
  opacity: 1;
}

.boot-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.boot-tag {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
}

.boot-footer {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.boot-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.76rem;
  color: var(--accent-amber);
}

.boot-timer-box.is-paused {
  color: var(--accent-cyan);
}

.boot-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.boot-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  width: 100%;
  transition: width 0.1s linear;
}

.boot-instructions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  flex-wrap: wrap;
  gap: 8px;
}

.boot-keys span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-primary);
  margin: 0 2px;
}

.btn-skip-boot {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-skip-boot:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--shadow-glow);
}
