/* isdp/web/src/components/thread/SandboxPanel.css */

.right-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-container);
  flex-shrink: 0;
  border-left: 1px solid var(--border-color);
}

.right-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-sidebar);
  flex-shrink: 0;
}

.right-sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 沙箱控制栏 */
.sandbox-control-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-sidebar);
}

/* 预览控制栏 */
.sandbox-preview-bar {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-base);
}

/* 沙箱预览 iframe */
.sandbox-iframe-container {
  flex: 1;
  position: relative;
  background: var(--bg-base);
}

/* 空状态居中 */
.sandbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  padding: 40px;
  text-align: center;
  background: var(--bg-base);
}

.sandbox-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* 深邃黑主题特殊样式 */
[data-theme='dark'] .right-sidebar {
  background: #1e293b;
}

[data-theme='dark'] .right-sidebar-header {
  background: #0f172a;
  border-bottom-color: #334155;
}

[data-theme='dark'] .sandbox-control-bar {
  background: #0f172a;
  border-bottom-color: #334155;
}

[data-theme='dark'] .sandbox-preview-bar {
  background: #1e293b;
  border-bottom-color: #334155;
}

[data-theme='dark'] .sandbox-iframe-container {
  background: #0f172a;
}

[data-theme='dark'] .sandbox-empty {
  background: #0f172a;
  color: #94a3b8;
}

[data-theme='dark'] .sandbox-empty-icon {
  color: #64748b;
}