/* Admin overrides */
nav a:focus,
nav a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Navigation links in black */
nav a {
  color: #374151 !important;
}

nav a:hover {
  color: #111827 !important;
}

/* Fix select fields styling */
select {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  background-color: white !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 2rem 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

/* Fix file input styling */
input[type="file"]::file-selector-button {
  appearance: auto !important;
  -webkit-appearance: button !important;
  background-color: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  margin-right: 0.5rem !important;
}

input[type="file"]::file-selector-button:hover {
  background-color: #e5e7eb !important;
}

/* Hide "Add" label from ActiveStorage field */
.field-unit--active-storage-field label[for$="_attachment"] {
  display: none !important;
}

/* Override Administrate blue buttons with brand color */
.button,
.button--primary,
a.button,
a.button--primary,
input[type="submit"],
button[type="submit"] {
  background-color: #8e0437 !important;
  border-color: #8e0437 !important;
  color: white !important;
}

.button:hover,
.button--primary:hover,
a.button:hover,
a.button--primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: #6b0329 !important;
  border-color: #6b0329 !important;
}

/* Override Administrate action links */
.action-item a,
.cell-data--actions a {
  color: #8e0437 !important;
}

.action-item a:hover,
.cell-data--actions a:hover {
  color: #6b0329 !important;
}

/* Destroy buttons as plain links */
.link--danger,
button.link--danger,
input.link--danger {
  background: none !important;
  border: none !important;
  color: #8e0437 !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: normal !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.link--danger:hover,
button.link--danger:hover,
input.link--danger:hover {
  background: none !important;
  color: #6b0329 !important;
  text-decoration: underline !important;
}

/* Override link colors in admin - only for action links */
.main-content .cell-data--actions a {
  color: #8e0437;
}

.main-content .cell-data--actions a:hover {
  color: #6b0329;
}

/* Keep table data links black */
.main-content .cell-data a {
  color: #374151;
}

.main-content .cell-data a:hover {
  color: #111827;
}
