.custom-select {
  width: 100%;
  height: 47px;
  position: relative;
  font-family: Arial, sans-serif;
}

.custom-select__control {
  background-color: #3d3141;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #444;
  transition: border-color 0.2s;
}

.custom-select__control:hover {
  border-color: #666;
}

.custom-select__value-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.custom-select__single-value {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.custom-select__indicators {
  display: flex;
  align-items: center;
}

.custom-select__indicator-separator {
  width: 1px;
  background: #555;
  margin-right: 8px;
}

.custom-select__dropdown-indicator {
  font-size: 14px;
  color: #aaa;
  transition: transform 0.2s;
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #3d3141;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.custom-select__options.show {
  display: block;
}

.custom-select__option {
  padding: 10px 12px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s;
}

.custom-select__option--header {
  font-weight: bold;
  text-transform: uppercase;
  color: #cfcfcf;
  cursor: default;
  pointer-events: none;
  background-color: #3d3141;
}

.custom-select__option:not(.custom-select__option--header):hover {
  background-color: #3d314180;
}

/* Tooltip */
.tooltip-text {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #666;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  width: 250px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  z-index: 9999;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #666 transparent transparent transparent;
}

.custom-select__control:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.custom-select__options::-webkit-scrollbar {
  width: 8px;
}

.custom-select__options::-webkit-scrollbar-track {
  background: #2a2229;
  border-radius: 4px;
}

.custom-select__options::-webkit-scrollbar-thumb {
  background: #4d3f52;
  border-radius: 4px;
}

.custom-select__options::-webkit-scrollbar-thumb:hover {
  background: #5a4a60;
}

@media (max-width: 768px) {
  .custom-select__options {
    max-height: 160px;
  }

  .custom-select__option {
    padding: 12px;
    font-size: 0.95rem;
  }

  .tooltip-text {
    width: 200px;
    font-size: 0.85rem;
    padding: 10px;
  }
}

.champions-select {
  width: 100%;
  position: relative;
  font-family: Arial, sans-serif;
}

.champions-select__control {
  background-color: #3d3141;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #444;
  transition: border-color 0.2s;
}

.champions-select-indicators {
  position: absolute;
  left: 80%;
  bottom: 25%;
}

.champions-select__control:hover {
  border-color: #666;
}

.champions-select__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #3d3141;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.champions-select__options.show {
  display: block;
}

.champions-select__option {
  padding: 10px 12px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s;
}

.champions-select__option:hover {
  background-color: #3d314180;
}

.champions-select__value-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px;
  min-height: 38px;
  align-items: center;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.selected-tag {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.selected-tag-close {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #bbb;
}

.tag-remove {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.tag-remove:hover {
  opacity: 1;
}

.champions-search-input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  padding: 4px;
  min-width: 60px;
  flex: 1;
}

.champions-select__options {
  display: none;
  position: absolute;
  background: #2f2631;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #555;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  width: calc(100% - 2px);
}

.champions-select__options.show {
  display: block;
}

.champions-select__option {
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
}
.champions-select__option:hover {
  background: #444;
}
