/* ==========================================================================
   FLASHLIGHT INTERACTIVE MASK LAYER
   ========================================================================== */
#flashlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.05s ease, visibility 0.05s ease;
  
  /* GPU Hardware Acceleration */
  will-change: mask-image, -webkit-mask-image;
  transform: translate3d(0, 0, 0);
  
  background-color: rgba(0, 5, 15, 0.95);

  /* Your preferred, crystal-clear circle cutout styling */
  -webkit-mask-image: radial-gradient(
    circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    transparent 0%,
    transparent 75%,
    #000000 100%
  );
  mask-image: radial-gradient(
    circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    transparent 0%,
    transparent 75%,
    #000000 100%
  );
}

/* Flashlight activated trigger state */
#flashlight-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* DARK MODE VARIANTS */
[data-theme="dark"] #flashlight-overlay {
  background-color: rgba(10, 10, 15, 0.92);
}

/* ==========================================================================
   FOOTER POWER BUTTON CONTROLS
   ========================================================================== */
.footer-power-btn {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    padding: 8px 6px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.footer-power-btn:hover {
    color: rgba(0, 0, 0, 0.7);
}

.footer-power-btn.active-mode {
    background: rgba(0, 50, 84, 1);
    box-shadow: 0px 3px 11px 0px rgba(0,0,0,0.56);
    border: 2px solid rgba(255, 255, 255, .9);
    color: rgba(255, 255, 255, 1);
}

.footer-power-btn.active-mode:hover{
    background: rgba(12, 102, 161, 1);
}

[data-theme="dark"] .footer-power-btn {
    color: rgba(255, 255, 255, .3);
}

[data-theme="dark"] .footer-power-btn:hover {
    color: rgba(255, 255, 255, .5);
}

[data-theme="dark"] .footer-power-btn.active-mode {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 1200px) {
    .footer-power-btn{display: none;}
}