/* Styling for the logged-in content management screens (teams, nieuws, agenda).
   Kept separate from site.css so the public theme file stays untouched;
   only reuses its --green custom properties for visual consistency. */

.button-danger {
  border-color: transparent;
  background: #b3261e;
  color: white;
}

.button-danger:hover {
  background: #8f1e18;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.admin-field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}

.admin-field small {
  font-size: 13px;
  color: #6b7a72;
}

.admin-field input[type="text"],
.admin-field input[type="date"],
.admin-field input[type="datetime-local"],
.admin-field input[type="number"],
.admin-field input[type="tel"],
.admin-field input[type="url"],
.admin-field input[type="file"],
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 2px solid #dbe3de;
  border-radius: 14px;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--green-dark);
  background: white;
}

.admin-field textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.admin-field-error {
  font-size: 13px;
  font-weight: 700;
  color: #b3261e;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--green-dark);
}

.admin-repeatable-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-repeatable-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  border: 2px solid #dbe3de;
  border-radius: 16px;
}

.admin-repeatable-item .admin-field {
  flex: 1 1 160px;
}

.admin-current-image {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-current-image img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-current-image span {
  font-size: 13px;
  color: #6b7a72;
}

.admin-flash {
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--green-mist);
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 24px;
}

/* Tiptap rich-text editor chrome. Typography for the editable area itself
   lives in .rich-text-content, shared with the public article page. */
.rich-text-editor {
  border: 2px solid #dbe3de;
  border-radius: 14px;
  overflow: hidden;
  background: white;
}

.rich-text-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--green-mist);
  border-bottom: 2px solid #dbe3de;
}

.rich-text-toolbar-divider {
  width: 1px;
  align-self: stretch;
  background: #dbe3de;
  margin-inline: 4px;
}

.rich-text-toolbar button {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
}

.rich-text-toolbar button:hover {
  background: white;
}

.rich-text-toolbar button.active {
  background: var(--green);
  color: white;
}

.rich-text-editor .rich-text-content {
  padding: 16px;
  min-height: 220px;
}

.rich-text-editor .rich-text-content p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #9aa8a1;
  float: left;
  height: 0;
  pointer-events: none;
}

/* Gallery picker for the news article slideshow photos. */
.admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-gallery-item {
  position: relative;
  width: 120px;
}

.admin-gallery-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.admin-gallery-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #b3261e;
  color: white;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
