/* Select2 Picker Consolidated Styles */

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  border-radius: var(--border-radius, 25px);
  border: 1px solid #ddd;
  height: 50px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  padding: 0;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--primary-color, #0066cc);
  box-shadow: 0 0 0 0.2rem rgba(117, 7, 135, 0.15);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px;
  padding-left: 20px;
  display: flex;
  align-items: center;
  height: 50px;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  background: none;
  font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.2em;
  color: #333;
  margin-left: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  opacity: 1;
  color: #e74c3c;
}

.select2-dropdown {
  border-radius: var(--border-radius, 8px);
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary-color, #0066cc);
  color: #fff;
}

/* Result Styling */
.select2-result-event {
  padding: 8px 0;
}
.select2-result-event .event-name {
  font-weight: 600;
  color: #333;
}
.select2-result-event .event-date {
  font-size: 0.85rem;
  color: #666;
}
.select2-result-person {
  padding: 8px 0;
}
.select2-result-person .person-name {
  font-weight: 600;
  color: #333;
}
.select2-result-person .person-years {
  font-size: 0.85rem;
  color: #666;
}

/* Events page link in Select2 dropdown */
.events-page-option {
  background-color: #f0f7ff;
  color: #0066cc;
  font-weight: 250;
  padding: 10px 12px;
  border-bottom: 1px solid #0066cc;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}
.events-page-option:hover {
  background-color: #e0f0ff;
  color: #004d99;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] .events-page-option {
  background-color: #0066cc;
  color: white;
}
.select2-container--default .select2-results__option {
  padding: 0;
} 

/* Custom styles for Select2 dropdowns */
.select2-container--default .select2-results__option {
    padding: 8px 12px;
    line-height: 1.4;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f8f9fa;
    color: #212529;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e9ecef;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-result-event, .select2-result-person {
    padding: 5px 0;
}

.events-page-option {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 5px 0;
    font-style: italic;
    color: #6c757d;
} 