.pageContainer {
  width: 100%;
  height: calc(100vh - 111px);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  overflow: hidden;
}

.pageHeader {
  padding: 0 var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  max-height: 62px;
  height: 62px;
  flex-shrink: 0;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.publishButton {
  background: var(--color-primary-accent);
  color: #0f172a;
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 10px 30px -12px rgba(14, 165, 233, 0.9);
}

.publishButton:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -15px rgba(14, 165, 233, 0.95);
}

.publishButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.resetButton {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.resetButton:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

.successMessage {
  color: var(--color-success);
  font-size: 0.875rem;
  font-weight: 500;
}

.errorMessage {
  color: var(--color-error);
  font-size: 0.875rem;
  font-weight: 500;
}

.backButton {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.backButton:hover {
  color: var(--color-text-primary);
  background: rgba(148, 163, 184, 0.1);
}

.mainContent {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
  min-height: 0;
}

.formSection {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  width: 25%;
  flex-shrink: 0;
  border-right: 1px solid #e0e0e0;
  background: #ffffff;
  height: 100%;
}

.previewSection {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 1;
  background: #525f73;
}

.carouselSection {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  width: 20%;
  flex-shrink: 0;
  border-left: 1px solid #e0e0e0;
  background: #ffffff;
  height: 100%;
}

.loadingContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 89px);
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .pageHeader {
    padding: 0 var(--spacing-lg);
  }

  .mainContent {
    flex-direction: column;
  }

  .formSection,
  .previewSection,
  .carouselSection {
    width: 100% !important;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--color-border);
  }
}
