/* Select2 bilesen stilleri (site.css 700 satiri astigi icin ayrildi). */
/* ============================================
   SELECT2 CUSTOM STYLES - MODERN DESIGN
   ============================================ */

/* Select2 container - genişlik kontrolü */
.select2-container {
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Select2 selection box - modern tasarım */
.select2-container--bootstrap-5 .select2-selection {
  height: 42px !important;
  min-height: 42px !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.select2-container--bootstrap-5 .select2-selection:hover {
  border-color: #667eea !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15) !important;
}

/* Select2 selection içindeki text alanı */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 14px !important;
  padding-right: 60px !important; /* Clear button ve arrow için yer */
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  color: #2d3748 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Select2 placeholder */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
  color: #a0aec0 !important;
  font-weight: 400 !important;
}

/* Select2 clear button (çarpı işareti) - modern tasarım */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 38px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #718096 !important;
  cursor: pointer !important;
  z-index: 15 !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #f7fafc !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover {
  color: #e53e3e !important;
  background-color: #fed7d7 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Select2 dropdown arrow - modern tasarım */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 12px !important;
  width: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
  border-color: #667eea transparent transparent transparent !important;
  border-width: 6px 5px 0 5px !important;
  margin-top: 0 !important;
  transition: transform 0.3s ease !important;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg) !important;
}

/* Select2 dropdown menü - modern tasarım */
.select2-dropdown {
  min-width: 250px !important;
  max-width: 600px !important;
  background-color: #ffffff !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

/* Dropdown genişliğini seçim kutusunun genişliğine göre ayarla - ekranın tamamını kaplamasın */
.select2-container--bootstrap-5 .select2-dropdown {
  width: auto !important;
  min-width: 100% !important; /* Seçim kutusunun en az genişliği kadar */
  max-width: 600px !important; /* Maksimum genişlik sınırı */
}

/* Dropdown açıldığında genişliğini container'a göre ayarla */
.select2-container--bootstrap-5.select2-container--open .select2-dropdown {
  width: auto !important;
  min-width: 100% !important;
  max-width: 600px !important;
}

/* Select2 results container */
.select2-results {
  max-height: 320px !important;
  overflow-y: auto !important;
  padding: 4px 0 !important;
}

/* Custom scrollbar for results */
.select2-results::-webkit-scrollbar {
  width: 6px;
}

.select2-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.select2-results::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.select2-results::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Select2 results option - modern tasarım */
.select2-results__option {
  padding: 12px 16px !important;
  line-height: 1.5 !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  color: #2d3748 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  margin: 2px 4px !important;
  border-radius: 6px !important;
}

.select2-results__option:hover {
  background-color: #f7fafc !important;
  color: #667eea !important;
}

.select2-results__option--highlighted {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.select2-results__option--selected {
  background-color: #edf2f7 !important;
  color: #667eea !important;
  font-weight: 600 !important;
}

.select2-results__option--selected.select2-results__option--highlighted {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

/* Select2 search field - modern tasarım */
.select2-search--dropdown {
  padding: 12px !important;
  background-color: #f7fafc !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

.select2-search--dropdown .select2-search__field {
  padding: 10px 14px !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 6px !important;
  width: 100% !important;
  height: 42px !important;
  font-size: 14px !important;
  color: #2d3748 !important;
  background-color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #667eea !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
  color: #a0aec0 !important;
}

/* Select2 focus state - modern tasarım */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
  background-color: #ffffff !important;
}

/* Select2 disabled state */
.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
  background-color: #f7fafc !important;
  border-color: #e0e0e0 !important;
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection--single .select2-selection__rendered {
  color: #a0aec0 !important;
}

/* Select2 multiple selection - modern tasarım */
.select2-container--bootstrap-5 .select2-selection--multiple {
  min-height: 42px !important;
  height: auto !important;
  padding: 4px 4px 0 4px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
  padding: 4px 8px !important;
  padding-right: 40px !important; /* Arrow için yer */
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2) !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
  color: #ffffff !important;
  margin-right: 8px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  opacity: 0.9 !important;
  transition: opacity 0.2s ease !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
  opacity: 1 !important;
  color: #fed7d7 !important;
}

/* Select2 loading state */
.select2-results__option--loading {
  color: #667eea !important;
  font-style: italic !important;
}

/* Select2 no results message */
.select2-results__message {
  padding: 16px !important;
  color: #718096 !important;
  font-size: 14px !important;
  text-align: center !important;
  font-style: italic !important;
}
