/* ============================================
   POWER.CSS
   Estilos de los botones fisicos y arranque
   ============================================ */

/* --- Boton Fisico de Power --- */
.power-button {
  position: fixed;
  right: -6px;
  top: 120px;
  width: 8px;
  height: 60px;
  background: #333333;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s ease, transform 0.1s ease;
}

.power-button:hover {
  background: #555555;
}

.power-button:active {
  transform: translateX(-2px);
  background: #00e676;
}

/* Indicador visual flotante mientras mantienes presionado */
.power-hold-indicator {
  position: fixed;
  right: 20px;
  top: 130px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #333333;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
}

.power-hold-indicator.active {
  opacity: 1;
  transform: scale(1);
}

/* Circulo de progreso del boton power */
.hold-progress-svg {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.hold-progress-circle {
  fill: none;
  stroke: #00e676;
  stroke-width: 3;
  stroke-dasharray: 56.54;
  stroke-dashoffset: 56.54;
  transition: stroke-dashoffset 0.1s linear;
}

/* --- Pantalla de Boot (Arranque Android) --- */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.boot-screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* Logo de Android animado */
.boot-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.boot-logo-text {
  font-family: 'Roboto', sans-serif;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: lowercase;
  background: linear-gradient(90deg, #ffffff 0%, #00e676 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

.boot-subtext {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: #666666;
  text-transform: uppercase;
}

.boot-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #222222;
  border-top-color: #00e676;
  border-radius: 50%;
  margin-top: 40px;
  animation: spin 1s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

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

/* --- Sistema Encendido (Escritorio / Sistema principal) --- */
.system-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1e1e2f 0%, #0f0f1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 9000;
}

.system-screen.active {
  opacity: 1;
  pointer-events: auto;
}
