/* ============================================================
   EAXY DEMO SECURITY LAYER
   Shows sidebar items visually but blocks access to admin pages.
   Applied to all *.eaxy.ai demo instances.
   ============================================================ */

/* Hide external docs link that reveals OpenClaw branding */
a.nav-item--external[href*="openclaw"] {
  display: none !important;
}

/* Demo overlay for blocked pages */
.eaxy-demo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: eaxy-fade-in 0.2s ease;
}

@keyframes eaxy-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eaxy-demo-modal {
  background: white;
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: eaxy-scale-in 0.25s ease;
}

@keyframes eaxy-scale-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.eaxy-demo-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.eaxy-demo-modal p {
  margin: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.eaxy-demo-modal button {
  background: #0d9488;
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.eaxy-demo-modal button:hover {
  background: #0f766e;
}

/* Dark theme support */
[data-theme="dark"] .eaxy-demo-modal {
  background: #1e293b;
}
[data-theme="dark"] .eaxy-demo-modal h3 {
  color: #f1f5f9;
}
[data-theme="dark"] .eaxy-demo-modal p {
  color: #94a3b8;
}
