/* Maintenance Mode Overlay Styles */

.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000000;
  background: #0a0a12;
  animation: maintenanceFadeIn 0.3s ease-out;
}

.maintenance-overlay.hiding {
  animation: maintenanceFadeOut 0.3s ease-in forwards;
}

@keyframes maintenanceFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes maintenanceFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.maintenance-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0a12;
}

/* Bypass Panel */
.maintenance-bypass-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000001;
}

.bypass-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bypass-toggle:hover {
  background: rgba(40, 51, 69, 0.95);
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.bypass-form {
  position: absolute;
  bottom: 54px;
  right: 0;
  width: 280px;
  padding: 16px;
  background: rgba(20, 20, 35, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  animation: bypassFormSlideIn 0.2s ease-out;
}

.bypass-form.visible {
  display: block;
}

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

.bypass-title {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bypass-form input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(15, 15, 30, 0.8);
  color: #fff;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.bypass-form input:focus {
  border-color: #e94560;
}

.bypass-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.bypass-form button {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.bypass-form button:hover {
  background: #dc2626;
}

.bypass-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .maintenance-bypass-panel {
    bottom: 80px;
    right: 15px;
  }

  .bypass-form {
    width: 260px;
    right: -10px;
  }

  .bypass-toggle {
    width: 40px;
    height: 40px;
  }

  .bypass-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* Windows created from maintenance page - must appear above overlay */
.winbox.maintenance-window {
  z-index: 2000002 !important;
}
