#socialPromptForm {
  display: grid;
  gap: 20px;
  max-width: 700px;
  margin: 40px auto;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 30px;
}

.field {
  display: block;
}

.field-full {
  width: 100%;
}

.caption-footer {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* Mobile: stack char count and checkbox */
@media (max-width: 767px) {
  .caption-footer {
    display: block;
  }
  .caption-footer .char-count,
  .caption-footer .small-label {
    margin-bottom: 8px;
  }
}

.field-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Desktop: two columns */
@media (min-width: 768px) {
  .field-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-weight: 500;
  margin-bottom: 2.5px;
  display: block;
  font-size: 14px;
  color: #333;
}

textarea,
select,
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  background-color: #f7f7f7;
  border: none;
  border-radius: 6px;
  color: #111;
  appearance: none;
  position: relative;
}

/* URL error styling */
.url-error {
  color: #d9534f;
  font-size: 12px;
  margin-top: 4px;
}

/* Constrain output container */
.output-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 0 15px;
}

/* Ensure direct children (captions/pre) fit within container */
.output-container > div,
.output-container pre {
  width: 100%;
  box-sizing: border-box;
}

/* Custom arrow for native select */
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='12' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'><path d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

select:focus {
  outline: none;
  background-color: #f0f0f0;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='12' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'><path d='M0 0l5 6 5-6z'/></svg>");
}

button[type="submit"] {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

/* Small label for checkbox */
.small-label {
  font-size: 12px;
  color: #555;
  display: inline-block;
}

/* Character count */
.char-count {
  font-size: 12px;
  color: #666;
}

/* Dropdown checkbox */
.checkbox-dropdown {
  position: relative;
  user-select: none;
}

.dd-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  background-color: #f7f7f7;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

/* Arrow icon for dd-btn */
.dd-btn::after {
  content: "▾";
  font-size: 10px;
  color: #666;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hide checkboxes initially */
.dd-checkboxes {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  margin-top: 4px;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

.dd-checkboxes label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.dd-checkboxes input {
  margin-right: 6px;
}

.dd-checkboxes.show {
  display: block;
}

.dd-btn.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 767px) {
  #socialPromptForm {
    padding: 20px;
  }
}


.psb-dashboard-container {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 32px auto;
  padding: 32px 24px;
}

.psb-dashboard-heading {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.psb-history-wrapper {
  overflow-x: auto;
}

.psb-history-table {
  width: 100%;
  border-collapse: collapse;
}

.psb-history-table th,
.psb-history-table td {
  padding: 12px;
  border-bottom: 1px solid #e1e3e5;
  text-align: left;
  color: #2c2c2c;
}

.psb-history-table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.psb-history-table th:nth-child(2),
.psb-history-table td:nth-child(2) {
  white-space: nowrap;
}