/* Boot Screen */
#boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  transition: opacity 0.5s ease;
}

#boot-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#boot-screen.hidden {
  display: none;
}

.boot-logo {
  font-size: 48px;
  font-weight: 700;
  color: #cdd6f4;
  letter-spacing: 4px;
  opacity: 0;
  animation: bootFadeIn 0.8s ease forwards;
  margin-bottom: 30px;
}

.boot-logo span {
  color: #89b4fa;
}

.boot-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(137, 180, 250, 0.2);
  border-top-color: #89b4fa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 40px;
  opacity: 0;
  animation: spin 0.8s linear infinite, bootFadeIn 0.8s 0.3s ease forwards;
}

.boot-log {
  font-family: 'Cascadia Code', 'Consolas', 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #a6e3a1;
  opacity: 0.7;
  text-align: left;
  width: 500px;
  max-width: 90vw;
}

.boot-log-line {
  opacity: 0;
  animation: bootLineIn 0.3s ease forwards;
  margin: 4px 0;
  white-space: nowrap;
}

.boot-log-line .ok {
  color: #a6e3a1;
  font-weight: bold;
}

@keyframes bootFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bootLineIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 0.7; transform: translateX(0); }
}

/* Shutdown Screen */
#shutdown-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #cdd6f4;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#shutdown-screen.visible {
  opacity: 1;
}

#shutdown-screen.hidden {
  display: none;
}

/* Power menu */
#power-menu {
  position: fixed;
  bottom: 60px;
  left: 10px;
  background: rgba(25, 25, 35, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#power-menu.hidden {
  display: none;
}

#power-menu button {
  display: block;
  width: 100%;
  padding: 8px 24px;
  background: none;
  border: none;
  color: #cdd6f4;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}

#power-menu button:hover {
  background: rgba(137, 180, 250, 0.15);
}
