Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

3.7 KB
Raw Blame
/* Modal styles */
.prompt-studio-modal {
  padding: 10px;
  /* `top: 20px` removed. It was written for antd, whose modal wrapper is
   * statically positioned so the value read as "offset from the top of the
   * viewport". The shadcn Dialog is `position: fixed` and centred with
   * `top: 50%; translate-y(-50%)`, so the same rule overrode the centring and
   * the transform then pulled the dialog 127px ABOVE the viewport — header
   * clipped off-screen. Centring is the component's job now. */
}

.prompt-studio-modal .ant-modal-content {
  padding: 0;
  border-radius: 8px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.prompt-studio-modal .ant-modal-header {
  padding-top: 16px;
  padding-bottom: 0;
  margin-bottom: 0;
  padding-right: 20px;
  border-bottom: none;
  padding-left: 20px;
}

.prompt-studio-modal .ant-modal-body {
  padding: 16px 20px 20px;
}

.prompt-studio-modal .ant-modal-close {
  top: 16px;
  right: 16px;
}

.prompt-studio-modal .ant-modal-close-x {
  font-size: 20px;
  color: var(--muted-foreground);
  font-weight: 300;
  width: 32px;
  height: 32px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Title styles */
.prompt-studio-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
  padding: 0;
  margin-bottom: -4px;
}

/* Description styles */
.prompt-studio-description {
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 22px;
}

/* Button container */
.prompt-studio-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Button styles */
.prompt-studio-create-btn {
  transition: all 0.2s ease-in-out !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  height: 32px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  box-shadow: none !important;
  font-weight: normal !important;
  border-radius: 6px !important;
  margin: 0 !important;
  padding: 4px 15px !important;
}

.prompt-studio-create-btn:hover {
  background-color: var(--primary) !important;
  opacity: 0.85;
  border-color: var(--primary) !important;
}

.prompt-studio-create-btn .plus-icon {
  font-size: 12px;
  margin-right: 4px;
  font-weight: normal;
  line-height: 1;
}

.prompt-studio-guide-btn {
  transition: all 0.2s ease-in-out !important;
  margin-top: 8px !important;
  height: 32px !important;
  font-size: 13px !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  font-weight: normal !important;
  color: var(--primary) !important;
  border-radius: 6px !important;
}

.prompt-studio-guide-btn:hover {
  color: var(--primary) !important;
  opacity: 0.85;
  background-color: transparent !important;
}

.prompt-studio-cancel-btn {
  transition: all 0.2s ease-in-out !important;
  margin-top: 8px !important;
  height: 32px !important;
  font-size: 13px !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  color: var(--muted-foreground) !important;
  font-weight: normal !important;
  border-radius: 6px !important;
}

.prompt-studio-cancel-btn:hover {
  color: var(--foreground) !important;
  background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Close button hover state */
.prompt-studio-modal .ant-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.06) !important;
  border-radius: 4px !important;
}

.prompt-studio-modal .ant-modal-close:hover .ant-modal-close-x {
  color: var(--foreground) !important;
}

/* Mask styles */
.prompt-studio-modal .ant-modal-mask {
  background-color: var(--muted-foreground) !important;
}