/**
 * @file
 * Admin styles for FlowDrop Node Type configuration.
 */

/* Fieldset styling */
fieldset.form-wrapper {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
}

fieldset.form-wrapper > legend {
  font-weight: 600;
  font-size: 1.1em;
  padding: 0 0.5rem;
  color: #333;
}

/* Section descriptions */
.section-description {
  color: #555;
  margin: 0 0 1rem 0;
  font-size: 0.95em;
  line-height: 1.4;
}

/* Table legend - explains column meanings */
.table-legend {
  background: #f0f7ff;
  border: 1px solid #b3d4fc;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875em;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.table-legend span {
  color: #444;
}

.table-legend strong {
  color: #0066cc;
}

/* Parameters and Outputs tables */
.parameters-table,
.outputs-table {
  width: 100%;
  border-collapse: collapse;
}

.parameters-table th,
.outputs-table th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #ccc;
}

/* Add help cursor to headers with tooltips */
.parameters-table th[title],
.outputs-table th[title] {
  cursor: help;
  text-decoration: underline dotted #999;
}

.parameters-table td,
.outputs-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.parameters-table code,
.outputs-table code {
  background: #e8e8e8;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Checkbox columns - center align */
.parameters-table col.flowdrop--narrow-col {
  text-align: center;
  width: 50px;
}
.parameters-table col.flowdrop--form-col {
  text-align: center;
  width: 800px;
}

/* Make checkboxes more visible */
.parameters-table input[type="checkbox"],
.outputs-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Compact form fields in default column */

/* Small text styling */
.parameters-table small,
.outputs-table small {
  color: #666;
  font-size: 0.85em;
}

/* Row hover effect */
.parameters-table tbody tr:hover,
.outputs-table tbody tr:hover {
  background: #fafafa;
}

/* Warning messages */
.messages--warning {
  background-color: #fff3e0;
  border-color: #ff9800;
  color: #e65100;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Form item spacing within fieldsets */
fieldset .form-item {
  margin-bottom: 1rem;
}

fieldset .form-item:last-child {
  margin-bottom: 0;
}
