/**
 * tom-select.css (v2.4.3)
 * Copyright (c) contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
 * file except in compliance with the License. You may obtain a copy of the License at:
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
 * ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 *
 */



 .ts-control {
    border: 1px solid rgb(190, 190, 190);
    padding: 8px 12px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 999px;
    display: flex;
    flex-wrap: wrap;
  }


  .full .ts-control {
    background-color: rgb(255, 255, 255);
  }
  .disabled .ts-control, .disabled .ts-control * {
    cursor: default !important;
  }
  .focus .ts-control {
    box-shadow: none;
  }
  .ts-control > * {
    vertical-align: baseline;
    display: inline-block;
  }

  .ts-wrapper.multi .ts-control > div {
    cursor: pointer;
    margin: 0 3px 3px 0;
    padding: 2px 6px;
    background: #f2f2f2;
    color: #303030;
    border: 0 solid rgb(190, 190, 190);
  }
  .ts-wrapper.multi .ts-control > div.active {
    background: #e8e8e8;
    color: #303030;
    border: 0 solid #cacaca;
  }
  .ts-wrapper.multi.disabled .ts-control > div, .ts-wrapper.multi.disabled .ts-control > div.active {
    color: rgb(124.5, 124.5, 124.5);
    background: white;
    border: 0 solid white;
  }
  .ts-control > input {
    flex: 1 1 auto;
    min-width: 7rem;
    display: inline-block !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-indent: 0 !important;
    border: 0 none !important;
    background: none !important;
    line-height: inherit !important;
    user-select: auto !important;
    box-shadow: none !important;
  }


  .ts-control > input::-ms-clear {
    display: none;
  }
  .ts-control > input:focus {
    outline: none !important;
  }
  .has-items .ts-control > input {
    margin: 0 4px !important;
  }
  .ts-control.rtl {
    text-align: right;
  }
  .ts-control.rtl.single .ts-control:after {
    left: 18px;
    right: auto;
  }
  .ts-control.rtl .ts-control > input {
    margin: 0 4px 0 -2px !important;
  }
  .disabled .ts-control {
    opacity: 0.5;
    background-color: #fafafa;
  }
  .input-hidden .ts-control > input {
    opacity: 0;
    position: absolute;
    left: -10000px;
  }
  
.ts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 10;
  border: 1px solid rgb(190, 190, 190);
  background: rgb(255, 255, 255);
  margin-top: 0.35rem; /* z.B. 4px Abstand */
  box-sizing: border-box;
  border-radius: 18px; /* alle 4 Ecken rund */
}
  .ts-dropdown [data-selectable] {
    cursor: pointer;
    overflow: hidden;
  }


.ts-dropdown .option,
.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create {
  padding: 0.375rem 0.5rem; /* py-1.5 px-2 */
  margin: 0.125rem 0.25rem; /* my-0.5 mx-1 */
  border-radius: 12px;  /* rounded-md */
  font-size: 0.875rem;      /* text-sm */
}
  .ts-dropdown .option, .ts-dropdown [data-disabled], .ts-dropdown [data-disabled] [data-selectable].option {
    cursor: inherit;
    opacity: 0.5;
  }
  .ts-dropdown [data-selectable].option {
    opacity: 1;
    cursor: pointer;
  }
  .ts-dropdown .optgroup:first-child .optgroup-header {
    border-top: 0 none;
  }
  .ts-dropdown .optgroup-header {
    color: #303030;
    background: rgb(255, 255, 255);
    cursor: default;
  }
  .ts-dropdown .active {
    background-color: #f5fafd;
  }

  .ts-dropdown .create {
    color: rgba(48, 48, 48, 0.5);
  }
  .ts-dropdown .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 5px 8px;
  }
  .ts-dropdown .spinner::after {
    content: " ";
    display: block;
    width: 24px;
    height: 24px;
    margin: 3px;
    border-radius: 50%;
    border: 5px solid rgb(190, 190, 190);
    border-color: rgb(190, 190, 190) transparent rgb(190, 190, 190) transparent;
    animation: lds-dual-ring 1.2s linear infinite;
  }
  @keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  .ts-dropdown-content {
    overflow: hidden auto;
    max-height: 200px;
    scroll-behavior: smooth;
  }
  
  .ts-wrapper.plugin-drag_drop .ts-dragging {
    color: transparent !important;
  }
  .ts-wrapper.plugin-drag_drop .ts-dragging > * {
    visibility: hidden !important;
  }
  
  .plugin-checkbox_options:not(.rtl) .option input {
    margin-right: 0.5rem;
  }
  
  .plugin-checkbox_options.rtl .option input {
    margin-left: 0.5rem;
  }
  
  /* stylelint-disable function-name-case */
  .plugin-clear_button {
    --ts-pr-clear-button: 1em;
  }
  .plugin-clear_button .clear-button {
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: calc(8px - 6px);
    margin-right: 0 !important;
    background: transparent !important;
    transition: opacity 0.5s;
    cursor: pointer;
  }
  .plugin-clear_button.form-select .clear-button, .plugin-clear_button.single .clear-button {
    right: max(var(--ts-pr-caret), 8px);
  }
  .plugin-clear_button.focus.has-items .clear-button, .plugin-clear_button:not(.disabled):hover.has-items .clear-button {
    opacity: 1;
  }
  
  .ts-wrapper .dropdown-header {
    position: relative;
    padding: 10px 8px;
    border-bottom: 1px solid rgb(190, 190, 190);
    background: #f8f8f8;
    border-radius: 18px 18px 0 0;
  }
  .ts-wrapper .dropdown-header-close {
    position: absolute;
    right: 8px;
    top: 50%;
    color: #303030;
    opacity: 0.4;
    margin-top: -12px;
    line-height: 18px;
    font-size: 18px !important;
  }
  .ts-wrapper .dropdown-header-close:hover {
    color: black;
  }
  
  .plugin-dropdown_input.focus.dropdown-active .ts-control {
    box-shadow: none;
  }

  .plugin-dropdown_input .dropdown-input {
    border: 1px solid rgb(190, 190, 190);
    border-width: 0 0 1px;
    display: block;
    padding: 8px 12px;
    box-shadow: none;
    width: 100%;
    background: transparent;
  }
  .plugin-dropdown_input .items-placeholder {
    border: 0 none !important;
    box-shadow: none !important;
    width: 100%;
  }
  .plugin-dropdown_input.has-items .items-placeholder, .plugin-dropdown_input.dropdown-active .items-placeholder {
    display: none !important;
  }
  
  .ts-wrapper.plugin-input_autogrow.has-items .ts-control > input {
    min-width: 0;
  }
  .ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input {
    flex: none;
    min-width: 4px;
  }
  .ts-wrapper.plugin-input_autogrow.has-items.focus .ts-control > input::placeholder {
    color: transparent;
  }
  
  .ts-dropdown.plugin-optgroup_columns .ts-dropdown-content {
    display: flex;
  }
  .ts-dropdown.plugin-optgroup_columns .optgroup {
    border-right: 1px solid #f2f2f2;
    border-top: 0 none;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
  }
  .ts-dropdown.plugin-optgroup_columns .optgroup:last-child {
    border-right: 0 none;
  }
  .ts-dropdown.plugin-optgroup_columns .optgroup::before {
    display: none;
  }
  .ts-dropdown.plugin-optgroup_columns .optgroup-header {
    border-top: 0 none;
  }
  
  .ts-wrapper.plugin-remove_button .item {
    display: inline-flex;
    align-items: center;
  }
  .ts-wrapper.plugin-remove_button .item .remove {
    color: inherit;
    text-decoration: none;
    vertical-align: middle;
    display: inline-block;
    padding: 0 6px;
    border-radius: 0 18px 18px 0;
    box-sizing: border-box;
  }
  .ts-wrapper.plugin-remove_button .item .remove:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  .ts-wrapper.plugin-remove_button.disabled .item .remove:hover {
    background: none;
  }
  .ts-wrapper.plugin-remove_button .remove-single {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 23px;
  }
  
  .ts-wrapper.plugin-remove_button:not(.rtl) .item {
    padding-right: 0 !important;
  }
  .ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
    border-left: 1px solid rgb(190, 190, 190);
    margin-left: 6px;
  }
  .ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {
    border-left-color: #cacaca;
  }
  .ts-wrapper.plugin-remove_button:not(.rtl).disabled .item .remove {
    border-left-color: white;
  }
  
  .ts-wrapper.plugin-remove_button.rtl .item {
    padding-left: 0 !important;
  }
  .ts-wrapper.plugin-remove_button.rtl .item .remove {
    border-right: 1px solid rgb(190, 190, 190);
    margin-right: 6px;
  }
  .ts-wrapper.plugin-remove_button.rtl .item.active .remove {
    border-right-color: #cacaca;
  }
  .ts-wrapper.plugin-remove_button.rtl.disabled .item .remove {
    border-right-color: white;
  }
  
  :root {
    --ts-pr-clear-button: 0px;
    --ts-pr-caret: 0px;
    --ts-pr-min: .75rem;
  }
  
  .ts-wrapper.single .ts-control, .ts-wrapper.single .ts-control input {
    cursor: pointer;
  }
  
  .ts-control:not(.rtl) {
    padding-right: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
  }
  
  .ts-control.rtl {
    padding-left: max(var(--ts-pr-min), var(--ts-pr-clear-button) + var(--ts-pr-caret)) !important;
  }
  
  .ts-wrapper {
    position: relative;
  }
  
  .ts-dropdown,
  .ts-control,
  .ts-control input {
    color: #303030;
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
  }
  

  .ts-control,
  .ts-wrapper.single.input-active .ts-control {
    background: rgb(255, 255, 255); 
  }
  
  .ts-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
  }

  /* Add these overrides at the end of the file to handle dark mode */
  .dark .full .ts-control {
    background-color: rgb(40, 41, 45) /* dark:bg-gray-800 equivalent */
  }

  .dark .ts-dropdown {
    background: rgb(34, 31, 31); /* dark:bg-gray-800 equivalent */
    border: 1px solid rgb(85, 85, 88); /* dark:border-gray-700 equivalent */
    border-radius: 18px;
  }

  /* Fix for the input field background and text color */
.dark .ts-control,
.dark .ts-wrapper.single.input-active .ts-control {
    background: rgb(40, 41, 45); /* dark:bg-gray-800 */
    color: #ebe5eb; /* dark:text-gray-200 */
    border: 1px solid rgb(85, 85, 88); /* weiße Border für Dark Mode */
    border-radius: 9999px; /* falls nicht schon geerbt */
}


/* Dark Mode Hover für ts-control */
.dark .ts-control:hover,
.dark .ts-wrapper.single.input-active .ts-control:hover {
    background: rgb(36, 36, 39); /* Hintergrund leicht transparent */
    transition: background 0.3s ease;   /* Dauer 300ms */
}



  /* Fix for the placeholder text color */
  .dark .ts-control input::placeholder {
    color: rgb(159, 159, 169); /* dark:text-gray-400 equivalent */
  }

  .dark .ts-dropdown .option,
  .dark .ts-dropdown .create {
    color: #e5e7eb; /* dark:text-gray-200 equivalent */
  }

  .dark .ts-dropdown .optgroup-header {
    color: rgb(159, 159, 169); /* dark:text-gray-400 equivalent */
    background: #111827; /* dark:bg-gray-900 equivalent */
  }

  .dark .ts-dropdown .active {
    background-color: #104e64; /* dark:bg-gray-700 equivalent */
    color: #f9fafb; /* dark:text-white equivalent */
  }

  .dark .ts-wrapper .dropdown-header {
    background: #111827; /* dark:bg-gray-900 equivalent */
  }

  .dark .ts-wrapper .dropdown-header-close {
    color: rgb(159, 159, 169); /* dark:text-gray-400 equivalent */
  }

  .dark .ts-wrapper .dropdown-header-close:hover {
    color: #e5e7eb; /* dark:text-gray-200 equivalent */
  }

  /* Fix for the "Add satellite at X" text in create option */
  .dark .ts-dropdown .create {
    color: #e5e7eb; /* light text color */
  }


  .dark .dropdown-input:focus {
    outline: transparent;
  }
.dropdown-input:focus {
    outline: transparent;
  }

  .ts-dropdown .active {
    background-color: rgb(231, 232, 234);
  }


.ts-control:focus,
.ts-control:focus-within,
.ts-control:focus-visible,
.ts-control input:focus,
.ts-control input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ...existing code... */
