/* ============================================
   Spaces Iframe — Browser Chrome Style
   ============================================ */

/* Outer wrapper — the "browser window" */
.spaces-iframe-tabs {
  margin-top: 1.25rem;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #2b2b2b;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* --- Tab bar (browser tabs) --- */
.spaces-iframe-tabs-nav {
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
  background: #1e1e1e;
}

.spaces-iframe-tab-button {
  position: relative;
  padding: 6px 18px;
  border: none;
  background: #2b2b2b;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s, background-color 0.15s;
  min-width: 0;
  white-space: nowrap;
}

.spaces-iframe-tab-button:hover {
  color: rgba(255, 255, 255, 0.7);
  background: #333;
}

.spaces-iframe-tab-button[aria-selected="true"] {
  color: #fff;
  background: #3a3a3a;
  font-weight: 600;
}

/* --- Address bar --- */
.spaces-iframe-addressbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #3a3a3a;
}

/* Traffic light dots */
.spaces-iframe-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.spaces-iframe-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* URL display */
.spaces-iframe-url {
  flex: 1;
  background: #2b2b2b;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Viewport (iframe area) --- */
.spaces-iframe-tabs-content {
  width: 100%;
  padding: 0;
  background: #2b2b2b;
}

.spaces-iframe-tab-content {
  width: 100%;
}

.spaces-iframe-tab-content iframe.spaces-iframe {
  display: block;
  width: 100%;
  height: 800px;
  border: none;
  background: #fff;
  transition: opacity 0.3s ease-in-out;
}
