@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.ttf");
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.ttf");
  font-weight: bold;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Italic.ttf");
  font-style: italic;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-BoldItalic.ttf");
  font-weight: bold;
  font-style: italic;
}

:root {
  --bs-body-font-family: 'Lato', sans-serif;
  --bs-border-radius: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

h3 {
  font-size: 1.6rem;
}

.navbar {
  font-weight: 700;
}

/* Navbar Paulina brand icon */
.navbar-brand {
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.footer {
  margin-top: auto !important;
}
/* Pills */
.pill-custom {
  box-shadow: 5px 5px;
  --bs-btn-color: black;
  --bs-btn-hover-bg: white;
  --bs-btn-active-bg: white;
}

.pill-custom.orange {
  --bs-btn-bg: #f46527;
}

.pill-custom.yellow {
  --bs-btn-bg: #fcdb1a;
}

.pill-custom.lightblue {
  --bs-btn-bg: #29a4e2;
}

.country-card:hover {
  background-color: #f8f9fa;
}

/* Lists */
.list-group {
  --bs-list-group-border-color: #717171;
  --bs-list-group-bg: #f8f9fa;
  --bs-list-group-action-hover-bg: #fcdb1a;
  --bs-list-group-action-active-bg: #f46527;
  cursor: pointer;
}

.list-group-item {
  cursor: pointer;
}

.list-group-item.active {
  --bs-list-group-active-bg: transparent;
  --bs-list-group-active-border-color: transparent;
  --bs-list-group-active-color: inherit;
  cursor: default;
}

.list-group-item:hover {
  outline: 2px solid black;
  outline-offset: -1px;
}

.list-group-item .bi {
  color: #f46527;
}

.list-group-item:hover .bi {
  color: black;
}

/* Author and work page features */

.main-card {
  border: 1px solid #717171;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-card-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.main-card-image {
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.main-card-image-link:hover .main-card-image {
  transform: scale(1.05);
}

.main-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;  
  transition: opacity 0.5s ease;
  border-radius: 8px;
  color: white;
  font-size: 2rem;
}

.main-card-image-link:hover .main-card-image-overlay {
  opacity: 1;
}

.section-icon {
  font-size: 1.5rem;
  color: #f46527;
  margin-right: 0.75rem;
}

/* AUTHOR PAGE */

/* Author image */
.author-image-link {
  width: 100%;  
}

.author-image {
  width: 100%;  
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* Author public domain status */
.public-domain-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.pd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.pd-yes {
  background-color: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.2);
  color: #198754;
}

.pd-yes .pd-icon {
  background-color: #198754;
  color: white;
}

.pd-no {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.pd-no .pd-icon {
  background-color: #dc3545;
  color: white;
}

.pd-consult, .pd-unknown {
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  color: #664d03;
}

.pd-consult .pd-icon, .pd-unknown .pd-icon {
  background-color: #ffc107;
  color: #664d03;
}

.pd-consult a, .pd-unknown a {
  color: #664d03;
}

.pd-consult a:hover, .pd-unknown a:hover {
  color: #523e03;
}

/* Biography styling */
.bio-row {
  transition: background-color 0.15s ease;
}

.bio-row:hover {
  background-color: #f8f9fa;
}

.bio-row:last-child {
  border-bottom: none !important;
}

/* Author page individual field editing  */

.author-bio-field {
  transition: background-color 0.2s;
  position: relative;
}

.author-bio-field:hover {
  background-color: #f8f9fa;
}

.author-field-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.author-field-edit-icon {
  opacity: 0.6;
  transition: opacity 0.2s;
  color: #6c757d;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.25rem 0.5rem !important;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-bio-field:hover .author-field-edit-icon {
  opacity: 1;
}

.author-field-edit-icon:hover,
.author-field-edit-icon:focus {
  color: #0d6efd;
  text-decoration: none;
}


@media (max-width: 768px), (hover: none) {
  .author-field-edit-icon {
    opacity: 0.7;
  }
  
  .author-field-edit-icon:active {
    opacity: 1;
  }
}

.author-field-edit {
  position: relative; 
}

.author-edit-controls {
  max-width: 500px;
  position: relative;
}


/* Author edit icon styling */
.author-field-edit-icon {
  color: #f46527;
  text-decoration: none;
  opacity: 1;
}

.author-field-edit-icon:hover {
  color: #d94e15;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.author-wikidata-search-input:focus,
.author-date-input:focus {
  outline: none;
  box-shadow: none !important;
  border-color: #dee2e6; 
}

.author-wikidata-results-dropdown {
  position: absolute;
  top: 100%; 
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 0.25rem;
  margin-top: 2px; 
}

.author-wikidata-results-dropdown.show {
  display: block;
}

.author-wikidata-results-dropdown .result-item {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.author-wikidata-results-dropdown .result-item:hover {
  background-color: #f0f0f0;
}

.author-wikidata-results-dropdown .result-item:last-child {
  border-bottom: none;
}

.author-edit-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-edit-buttons .btn {
  min-width: 44px;
  min-height: 38px;
}

.author-edit-buttons .btn:focus {
  outline: none;
  box-shadow: none !important;
}

/* Date input */
.author-date-input {
  max-width: 200px;
}

@media (max-width: 576px) {
  .author-date-input {
    max-width: 100%;
  }
}

/* Wrapper for input and dropdown */
.author-search-wrapper {
  position: relative;
  margin-bottom: 0.5rem; 
}

.author-edit-controls {
  max-width: 500px;
}

.author-field-edit {
  position: static;
}

/* Toast notification */
.author-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 250px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.author-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .author-toast {
    left: 10px;
    right: 10px;
    min-width: auto;
  }
  
  .author-edit-buttons {
    flex-direction: row;
  }
  
  .author-edit-buttons .btn {
    flex: 1;
  }
}

/* Loading state */
.author-bio-field.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Cancel button hover effect */
.author-cancel-btn {
  transition: all 0.2s ease;
}

.author-cancel-btn:hover {
  background-color: #e9ecef !important;
  border-color: #495057 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Hide edit buttons when JavaScript is disabled */
@supports not (display: none) {
  .author-field-edit-icon {
    display: none !important;
  }
}

/* Author inline editing date fields */

.date-input-group .author-date-day-input,
.date-input-group .author-date-month-input {
  width: 65px;
  min-width: 65px;
}

.date-input-group .author-date-year-input {
  width: 85px;
  min-width: 85px;
}

.date-separator {
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
}

/* Author page gender select dropdown */
.author-gender-select {
  background-color: #ffe65b;
  border: 1px solid #000;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.author-gender-select:focus {
  background-color: #ffe65b;
  border-color: #000;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

#add-missing-data-btn {
  background: transparent;
  color: #f46527;
  border: 1px solid #f46527;
  border-radius: 24px;
}

.add-info-btn-disabled {
  opacity: 0.6 !important;
  color: gray;
  border: 1px solid gray;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Hide remove button and reference number on author inline edit reference cards */
#author-biography-section .remove-ref-btn,
#author-biography-section .reference-item > div:first-child strong {
  display: none !important;
}

.author-field-edit-icon-disabled {
  display: inline-flex;
  align-items: center;
  cursor: default;
}

/* WORK PAGE */

/* Work image */
.work-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.work-image {  
  width: auto;
  max-width: 100%;  
}

/* Work authors */
.work-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

/* Work details */
.detail-card {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 1.25rem;
  height: 100%;
  margin-bottom: 1.5rem;
}

.detail-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.detail-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Work copyright status */
.copyright-status-item {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: rgba(25, 135, 84, 0.1);
  border-radius: 4px;
  border-left: 3px solid #198754;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copyright-status-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copyright-status-unknown {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1.5rem;
  background-color: rgba(108, 117, 125, 0.1);
  border-radius: 6px;
  color: #495057;
  line-height: 1.6;
}

.copyright-status-unknown p:last-child {
  margin-bottom: 0;
}

.copyright-status-private-domain {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 3px solid #dc3545;
}

/* Work page individual field editing */

.work-bio-field {
  transition: background-color 0.2s;
  position: relative;
}

.work-bio-field:hover {
  background-color: #f8f9fa;
}

.work-field-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-field-edit-icon {
  color: #f46527;
  text-decoration: none;
  opacity: 1;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem !important;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.work-bio-field:hover .work-field-edit-icon {
  opacity: 1;
}

.work-field-edit-icon:hover,
.work-field-edit-icon:focus {
  color: #d94e15;
  transform: scale(1.1);
  transition: all 0.2s ease;
  text-decoration: none;
}

@media (max-width: 768px), (hover: none) {
  .work-field-edit-icon {
    opacity: 0.7;
  }

  .work-field-edit-icon:active {
    opacity: 1;
  }
}

.work-field-edit {
  position: relative;
}

.work-edit-controls {
  max-width: 500px;
  position: relative;
}

.work-wikidata-search-input:focus,
.work-date-input:focus {
  outline: none;
  box-shadow: none !important;
  border-color: #dee2e6;
}

.work-wikidata-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  margin-top: 2px;
}

.work-wikidata-results-dropdown.show {
  display: block;
}

.work-wikidata-results-dropdown .result-item {
  padding: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.work-wikidata-results-dropdown .result-item:hover {
  background-color: #f0f0f0;
}

.work-wikidata-results-dropdown .result-item:last-child {
  border-bottom: none;
}

.work-edit-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.work-edit-buttons .btn {
  min-width: 44px;
  min-height: 38px;
}

.work-edit-buttons .btn:focus {
  outline: none;
  box-shadow: none !important;
}

/* Work search wrapper */
.work-search-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
}

/* Work date inputs */
.work-edit-controls .work-date-day-input,
.work-edit-controls .work-date-month-input {
  width: 65px;
  min-width: 65px;
}

.work-edit-controls .work-date-year-input {
  width: 85px;
  min-width: 85px;
}

@media (max-width: 576px) {
  .work-edit-controls .work-date-day-input,
  .work-edit-controls .work-date-month-input,
  .work-edit-controls .work-date-year-input {
    max-width: 100%;
  }
}

/* Work toast notification */
.work-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 250px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.work-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 576px) {
  .work-toast {
    left: 10px;
    right: 10px;
    min-width: auto;
  }

  .work-edit-buttons {
    flex-direction: row;
  }

  .work-edit-buttons .btn {
    flex: 1;
  }
}

/* Work loading state */
.work-bio-field.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Work cancel button hover */
.work-cancel-btn {
  transition: all 0.2s ease;
}

.work-cancel-btn:hover {
  background-color: #e9ecef !important;
  border-color: #495057 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Work disabled edit icon */
.work-field-edit-icon-disabled {
  display: inline-flex;
  align-items: center;
  cursor: default;
}

/* Hide work edit buttons when JavaScript is disabled */
@supports not (display: none) {
  .work-field-edit-icon {
    display: none !important;
  }
}

/* Hide remove button and reference number on work inline edit reference cards */
.work-bio-field .remove-ref-btn,
.work-bio-field .reference-item > div:first-child strong {
  display: none !important;
}

/* Hide remove button and reference number on missing work field reference cards */
#missing-work-data-panel .remove-ref-btn,
#missing-work-data-panel .reference-item > div:first-child strong {
  display: none !important;
}

/* FORMS */
.form-select.search {
  color: black;
  width: fit-content;
  background-color:#29a4e2;
  transition: background-color .15s ease-in-out;
}

.form-select.search:hover {
  background-color: #71c3ec;
}

.form-select.filter {
  background-color:#fcdb1a;
}

.form-select.filter:hover {
  background-color: #ffe65b;
}

/* Combobox styles */
#nationality-combobox,
#country-of-origin-combobox,
#author-nationality-combobox,
#author-country-of-birth-combobox  {
  background-color: #fcdb1a;
}

#nationality-combobox:hover,
#country-of-origin-combobox:hover,
#author-nationality-combobox:hover,
#author-country-of-birth-combobox:hover {
  background-color: #ffe65b;
}

.combobox-container {
  position: relative;
}

#nationality-dropdown,
#country-of-origin-dropdown,
#author-nationality-dropdown,
#author-country-of-birth-dropdown {
  position: absolute;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  background-color: #fcdb1a;
  border: 1px solid black;
  display: none;
  /* Hide scrollbar for Chrome */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

#nationality-dropdown::-webkit-scrollbar,
#country-of-origin-dropdown::-webkit-scrollbar,
#author-nationality-dropdown::-webkit-scrollbar,
#author-country-of-birth-dropdown::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

#nationality-dropdown.show,
#country-of-origin-dropdown.show,
#author-nationality-dropdown.show,
#author-country-of-birth-dropdown.show {
  display: block;
}

#nationality-dropdown .dropdown-item,
#country-of-origin-dropdown .dropdown-item,
#author-nationality-dropdown .dropdown-item,
#author-country-of-birth-dropdown .dropdown-item {
  padding: 0.5rem 1rem;
  color: black;
}

#nationality-dropdown .dropdown-item:hover,
#country-of-origin-dropdown .dropdown-item:hover,
#author-nationality-dropdown .dropdown-item:hover,
#author-country-of-birth-dropdown .dropdown-item:hover {
  background-color: #ffe65b;
}

.dropdown-item.active, .dropdown-item:active {
  --bs-dropdown-link-active-bg: #ffee8d;
  background-color: var(--bs-dropdown-link-active-bg);
}


/* Gender Select */
#author-gender {
  background-color: #ffe65b;
  border: 1px solid #000;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#author-gender:focus {
  background-color: #ffe65b;
  border-color: #000;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}


/* OAuth/User Menu Styles */
.btn-auth {
  background-color: transparent;
  color: black;
  border: 1px solid black;
  font-weight: 400;
  transition: background-color .15s ease-in-out;
}

.btn-auth:hover {
  background-color: #71c3ec;
  color: black;
   border: 1px solid black;
}

/* Mobile login button */
@media (max-width: 991.98px) {
  .btn-auth {
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .btn-auth:hover {
    border-color: black
  }
}

.user-dropdown .dropdown-menu {
  background-color: #71c3ec;
  border: 1px solid black;
  min-width: auto;
  width: max-content;
}

.user-dropdown .dropdown-item {
  color: black;
  transition: background-color .15s ease-in-out;
   white-space: nowrap;
}

.user-dropdown .dropdown-item:hover {
  background-color: #29a4e2;
  color: black;
}

.user-dropdown .dropdown-divider {
  border-color: rgba(0, 0, 0, 0.2);
}

.user-dropdown .dropdown-item i {
  margin-right: 0.5rem;
}


/* Add author form styles */
.wikidata-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.wikidata-search-results .wikidata-result-item:hover {
  background-color: #e7f1ff;
}

.wikidata-search-results .free-text-option:hover {
  background-color: #fff3cd;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #155724;
}

.success-message h3 {
    margin-top: 0;
    color: #155724;
}

.success-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.success-links .btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.success-links .btn-primary {
    background-color: #28a745;
    color: white;
}

.success-links .btn-primary:hover {
    background-color: #218838;
}

.success-links .btn-secondary {
    background-color: #007bff;
    color: white;
}

.success-links .btn-secondary:hover {
    background-color: #0056b3;
}

.success-links .btn-outline {
    background-color: white;
    color: #155724;
    border: 2px solid #155724;
}

.success-links .btn-outline:hover {
    background-color: #155724;
    color: white;
}


/* Wikidata Search Inputs */
#author-nationality,
#author-place-of-birth,
#author-occupation,
#author-ethnicity {
  background-color: #ffe65b;
  border: 1px solid #000;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#author-nationality:focus,
#author-place-of-birth:focus,
#author-occupation:focus,
#author-ethnicity:focus {
  background-color: #ffe65b;
  border-color: #000;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

#author-place-of-birth::placeholder,
#author-nationality::placeholder,
#author-occupation::placeholder,
#author-ethnicity::placeholder {
  color: #000;
  opacity: 0.7; 
}

#author-place-of-birth-selected .badge,
#author-nationality-selected .badge,
#author-selected-occupations .badge,
#author-ethnicity-selected .badge {
  background-color: #29a4e2;
  color: white;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

#author-place-of-birth-selected .badge .btn-close,
#author-nationality-selected .badge .btn-close,
#author-selected-occupations .badge .btn-close,
#author-ethnicity-selected .badge .btn-close {
  font-size: 0.75em;
  opacity: 0.7;
  filter: invert(1);
}

#author-place-of-birth-selected .badge .btn-close:hover,
#author-nationality-selected .badge .btn-close:hover,
#author-selected-occupations .badge .btn-close:hover,
#author-ethnicity-selected .badge .btn-close:hover {
  opacity: 1;
}

.wikidata-search-results {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #000;
  border-top: none;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
  margin-top: -1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wikidata-search-results .search-result-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.15s ease-in-out;
}

.wikidata-search-results .search-result-item:hover {
  background-color: #f8f9fa;
}

.wikidata-search-results .search-result-item:last-child {
  border-bottom: none;
}

.wikidata-search-results .text-center {
  padding: 1rem;
  color: #6c757d;
}


/* date of birth and date input fields */
.date-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-part-input.year-input {
  width: 90px;
}

.date-part-input.month-input,
.date-part-input.day-input {
  width: 75px;
}

.date-separator {
  color: #666;
  font-weight: bold;
  user-select: none;
}


/* Add Work Form - Wikidata Search Inputs */
#work-author,
#work-director,
#work-creator,
#work-composer,
#work-screenwriter,
#work-lyricist,
#work-performer,
#work-producer,
#work-language,
#work-language-film,
#work-country,
#work-location,
#work-genre,
#work-record-label,
#work-country-publication {
  background-color: #ffe65b;
  border: 1px solid #000;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#work-author:focus,
#work-director:focus,
#work-creator:focus,
#work-composer:focus,
#work-screenwriter:focus,
#work-lyricist:focus,
#work-performer:focus,
#work-producer:focus,
#work-language:focus,
#work-language-film:focus,
#work-country:focus,
#work-location:focus,
#work-genre:focus,
#work-record-label:focus,
#work-country-publication:focus {
  background-color: #ffe65b;
  border-color: #000;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

#work-author::placeholder,
#work-director::placeholder,
#work-creator::placeholder,
#work-composer::placeholder,
#work-screenwriter::placeholder,
#work-lyricist::placeholder,
#work-performer::placeholder,
#work-producer::placeholder,
#work-language::placeholder,
#work-language-film::placeholder,
#work-country::placeholder,
#work-location::placeholder,
#work-genre::placeholder,
#work-record-label::placeholder,
#work-country-publication::placeholder {
  color: #000;
  opacity: 0.7;
}

/* Selected items badges for work form */
#work-selected-authors .badge,
#work-selected-directors .badge,
#work-selected-creators .badge,
#work-selected-composers .badge,
#work-selected-screenwriters .badge,
#work-selected-lyricists .badge,
#work-selected-performers .badge,
#work-selected-producers .badge,
#work-language-selected .badge,
#work-language-film-selected .badge,
#work-country-selected .badge,
#work-location-selected .badge,
#work-genre-selected .badge,
#work-record-label-selected .badge,
#work-country-publication-selected .badge {
  background-color: #29a4e2;
  color: white;
  padding: 0.35em 0.65em;
  font-size: 0.875em;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

#work-selected-authors .badge .btn-close,
#work-selected-directors .badge .btn-close,
#work-selected-creators .badge .btn-close,
#work-selected-composers .badge .btn-close,
#work-selected-screenwriters .badge .btn-close,
#work-selected-lyricists .badge .btn-close,
#work-selected-performers .badge .btn-close,
#work-selected-producers .badge .btn-close,
#work-language-selected .badge .btn-close,
#work-language-film-selected .badge .btn-close,
#work-country-selected .badge .btn-close,
#work-location-selected .badge .btn-close,
#work-genre-selected .badge .btn-close,
#work-record-label-selected .badge .btn-close,
#work-country-publication-selected .badge .btn-close {
  font-size: 0.75em;
  opacity: 0.7;
  filter: invert(1);
}

#work-selected-authors .badge .btn-close:hover,
#work-selected-directors .badge .btn-close:hover,
#work-selected-creators .badge .btn-close:hover,
#work-selected-composers .badge .btn-close:hover,
#work-selected-screenwriters .badge .btn-close:hover,
#work-selected-lyricists .badge .btn-close:hover,
#work-selected-performers .badge .btn-close:hover,
#work-selected-producers .badge .btn-close:hover,
#work-language-selected .badge .btn-close:hover,
#work-language-film-selected .badge .btn-close:hover,
#work-country-selected .badge .btn-close:hover,
#work-location-selected .badge .btn-close:hover,
#work-genre-selected .badge .btn-close:hover,
#work-record-label-selected .badge .btn-close:hover,
#work-country-publication-selected .badge .btn-close:hover {
  opacity: 1;
}

/* Work form dropdown results */
.wikidata-results-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-field,
.creator-field,
.mb-3 {
    position: relative;
}

.wikidata-results-dropdown .search-result-item {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.15s ease-in-out;
}

.wikidata-results-dropdown .search-result-item:hover {
  background-color: #f8f9fa;
}

.wikidata-results-dropdown .search-result-item:last-child {
  border-bottom: none;
}

.wikidata-results-dropdown .text-center {
  padding: 1rem;
  color: #6c757d;
}

/* work type select */
#work-type-select {
  background-color: #ffe65b;
  border: 1px solid #000;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#work-type-select:focus {
  background-color: #ffe65b;
  border-color: #000;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.1);
}

/* Form retained notice */
.form-retained-notice {
  padding: 0.75rem 1rem;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 0.375rem;
  font-weight: 500;
}