/* Live Demo Preview Bar */
body.bsw-preview-mode {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.bsw-preview-toolbar {
  height: 56px;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  flex-shrink: 0;
}

.bsw-preview-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bsw-preview-back {
  color: #cbd5e1;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bsw-preview-back:hover {
  color: #ffffff;
}

.bsw-preview-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bsw-preview-devices {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 8px;
}

.bsw-device-btn {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bsw-device-btn.is-active,
.bsw-device-btn:hover {
  background: #ffffff;
  color: #0f172a;
}

.bsw-preview-stage {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  overflow: auto;
}

.bsw-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  transition: width 200ms ease;
}

.bsw-preview-stage.is-tablet {
  padding: 16px;
}
.bsw-preview-stage.is-tablet .bsw-preview-frame {
  width: 768px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}

.bsw-preview-stage.is-mobile {
  padding: 16px;
}
.bsw-preview-stage.is-mobile .bsw-preview-frame {
  width: 390px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}

@media (max-width: 768px) {
  .bsw-preview-devices {
    display: none;
  }
}
