/* =========================================================
   Modern Select2 Theme
   Full Replacement for select1.css
   ========================================================= */

.select2-container {
  width: 100% !important;
  display: block;
  font-size: 14px;
}

.select2-container * {
  box-sizing: border-box;
}

.select2-container .select2-selection--single {
  min-height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all .28s ease;
}

.select2-container .select2-selection--single:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #fff;
}

.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
  border-color: rgba(37, 99, 235, 0.52);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.10),
    0 12px 30px rgba(37, 99, 235, 0.08);
}

.select2-container .select2-selection--single .select2-selection__rendered {
  width: 100%;
  padding-right: 16px;
  padding-left: 42px;
  color: #0f172a;
  line-height: 54px;
  font-weight: 600;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-right: 16px;
  padding-left: 42px;
  text-align: right;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.select2-container .select2-selection--single .select2-selection__clear {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: all .22s ease;
}

.select2-container .select2-selection--single .select2-selection__clear:hover {
  color: #ef4444;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  margin: 2px auto 0;
  transition: all .22s ease;
}

.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(-135deg);
  margin-top: 6px;
  border-color: #2563eb;
}

.select2-container .select2-selection--multiple {
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  transition: all .28s ease;
}

.select2-container .select2-selection--multiple:hover {
  border-color: rgba(37, 99, 235, 0.32);
  background: #fff;
}

.select2-container--focus .select2-selection--multiple,
.select2-container--open .select2-selection--multiple {
  border-color: rgba(37, 99, 235, 0.52);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.10),
    0 12px 30px rgba(37, 99, 235, 0.08);
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
  color: #1d4ed8;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all .22s ease;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #ef4444;
}

.select2-container .select2-search--inline .select2-search__field {
  min-height: 38px;
  margin: 0;
  padding: 0 6px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #0f172a;
  font-weight: 500;
}

.select2-search__field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select2-dropdown {
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 1055;
}

.select2-dropdown--above {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.select2-dropdown--below {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.select2-search--dropdown {
  padding: 12px;
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.select2-search--dropdown .select2-search__field {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #fff;
  padding: 10px 14px;
  outline: none;
  transition: all .22s ease;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.select2-results {
  display: block;
}

.select2-results__options {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.select2-results__option {
  padding: 12px 14px;
  border-radius: 14px;
  color: #0f172a;
  font-weight: 600;
  transition: all .20s ease;
}

.select2-results__option--selectable {
  cursor: pointer;
}

.select2-results__option--selectable:hover,
.select2-results__option--highlighted {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.select2-results__option[aria-selected="true"],
.select2-results__option--selected {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #fff;
}

.select2-container--disabled .select2-selection--single,
.select2-container--disabled .select2-selection--multiple {
  opacity: .65;
  cursor: not-allowed;
  background: #f8fafc;
}

.select2-close-mask {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  min-width: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0);
}

@media (max-width: 575.98px) {
  .select2-container .select2-selection--single {
    min-height: 52px;
    border-radius: 16px;
  }

  .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 50px;
    font-size: 13px;
  }

  .select2-container .select2-selection--multiple {
    min-height: 52px;
    border-radius: 16px;
  }

  .select2-dropdown {
    border-radius: 16px;
  }

  .select2-results__option {
    padding: 11px 12px;
    font-size: 13px;
  }
}
