/**
 * @file public/css/components/app-sandbox.css
 * @description Full-screen overlay that hosts a sandboxed (opaque-origin) iframe for
 *   viewing user-published apps without granting them the apex origin (H-2). Paired with
 *   /js/app-sandbox.js (openAppSandboxed).
 * @usage Linked from spa.html; classes applied by /js/app-sandbox.js.
 * @version-history
 *   v1.0.0 — 2026-06-20 — Initial (H-2 app-origin isolation, Phase 0).
 */

.app-sandbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: var(--bg, #0e0e14);
}

.app-sandbox-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface, #1a1a26);
  border-bottom: 1px solid var(--border, #2a2a3a);
  flex: 0 0 auto;
}

.app-sandbox-title {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text, #e8e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sandbox-close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border, #2a2a3a);
  border-radius: 6px;
  background: var(--bg-dim, #14141c);
  color: var(--text, #e8e8f0);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.app-sandbox-close:hover {
  border-color: var(--border-hover, #3a3a4a);
}

.app-sandbox-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}
