.c-table {
  width: 100%;
}

.c-table table {
  width: 100%;
  border: 1px solid rgb(209 213 219);
}

.c-table thead {
  background-color: rgb(249 250 251);
  border: 1px solid rgb(209 213 219);
}
.c-table tbody {
  background-color: white;
  border-left: 1px solid rgb(209 213 219);
  border-right: 1px solid rgb(209 213 219);
}

.c-table > * + * {
  border-top: 1px solid rgb(209 213 219);
  border-bottom: 1px solid rgb(209 213 219);
}

.c-table tbody > tr + tr {
  border-top: 1px solid rgb(209 213 219);
  border-bottom: 1px solid rgb(209 213 219);
}

.c-table th {
  padding: 12px;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  font-weight: 500;
  color: #111827;
  vertical-align: top;
}

.c-table tr:hover {
  background-color: rgb(243 244 246);
}

.c-table td {
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
  vertical-align: top;
}

.c-table .c-number {
  text-align: right;
}

.c-table a {
  text-decoration: underline;
}

.c-table a:hover {
  text-decoration: none;
}

.c-link {
  text-decoration: underline;
  cursor: pointer;
}

.c-link:hover {
  text-decoration: none;
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 20rem;
  max-width: 50rem;
}

.c-form.w-full {
  max-width: 100%;
}

.c-form input[type="email"],
.c-form input[type="text"],
.c-form input[type="file"],
.c-form input[type="url"],
.c-form select,
.c-form textarea {
  display: block;
  margin-top: 4px;
  padding: 8px;
  width: 100%;
  border-radius: 0.375rem;
  border-width: 1px;
  border-color: rgb(210 214 220);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.c-form select {
  appearance: none;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

.c-form textarea {
  min-height: 120px;
  field-sizing: content;
}

.c-form .field_with_errors label {
  color: red;
}

.c-form .field_with_errors input[type="email"],
.c-form .field_with_errors input[type="text"],
.c-form .field_with_errors input[type="file"],
.c-form .field_with_errors select,
.c-form .field_with_errors textarea {
  border-color: red;
}

.c-form-errors {
  color: red;
  font-weight: bold;
  border: 1px solid red;
  padding: 1rem;
  border-radius: 20px;
}

.c-form-errors strong {
  font-size: 1.125rem;
  line-height: 1.75rem;
  display: block;
  margin-bottom: 8px;
}

.c-form input[type="submit"],
.c-button {
  border-radius: 16px;
  background-color: #ffffff;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: black;
  border-color: 1px solid #d1d5db;
  box-shadow: 0 0 0 1px #d1d5db;
  transition: background-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
}

.c-form input[type="submit"]:hover,
.c-button:hover {
  background-color: rgb(229 231 235);
}

.c-form input[type="submit"] {
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.c-heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-bottom: 0.5rem;
}

.c-box {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgb(229 231 235);
  padding: 1.5rem;
}

/* Rouge syntax highlighting for JSON */
.json-display {
  background-color: #f8f8f8;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.4;
}

.json-display pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre;
  word-wrap: normal;
  overflow-x: auto;
}

.json-display .highlight {
  background: transparent;
}

/* Custom dropdown arrow for enrichment data only */
.enrichment-data details summary {
  list-style: none;
}

.enrichment-data details summary::-webkit-details-marker {
  display: none;
}

.enrichment-data details summary::marker {
  display: none;
}

.enrichment-data .dropdown-arrow {
  transition: transform 0.2s ease;
  font-size: 12px;
  color: #666;
}

.enrichment-data details[open] .dropdown-arrow {
  transform: rotate(90deg);
}

/* Rouge JSON syntax highlighting colors - matching admin theme */
.json-display .nl {
  color: #000000;
  font-weight: bold;
} /* keys */
.json-display .s2 {
  color: #006400;
} /* strings */
.json-display .mi {
  color: #007bff;
} /* numbers */
.json-display .p {
  color: #000000;
} /* punctuation */
.json-display .w {
  color: #000000;
  white-space: pre;
} /* whitespace */
.json-display .kc {
  color: #007bff;
  font-weight: bold;
} /* keywords (true/false/null) */
