.editor-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
}

.editor-loading h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-top: var(--spacing-md);
}

.editor-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
}


.editor-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  cursor: default;
  /* Leave space for StatusBar */
  padding-bottom: 24px;
}

.viewport {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-bg-base);
  padding: 0;
}

.viewport h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-md) 0;
}

.viewport p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--layout-footer-height);
  padding: 0 8px;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  flex-shrink: 0;
}

.editor-footer span {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 30, 30, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-overlay);
  backdrop-filter: blur(4px);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 48px;
  background-color: #252526;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.loading-message {
  font-size: 14px;
  color: #cccccc;
  margin: 0;
  white-space: nowrap;
}
