.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}
/* [data-bs-theme=dark] {
    --tagify-dd-color-primary: #198754 !important;
    --tagify-dd-bg-color: hsl(250, 43%, 95%) !important;
    --bs-primary-bg-subtle: #483d8b;
    --bs-primary-text-emphasis: #faebd7;
  } */

  /* Dark Theme */
[data-bs-theme="dark"] {
    --background-color: #1a1e27;
    --border-color: #3c4049;
    --text-color: #fff;
    --dropdown-bg: #1a1e27;
    --selected-bg: #007bff;
    --selected-text: #fff;
    --highlight-bg: #007bff;
    --hover-bg: #0056b3;
    --placeholder-color: #b0b3b8;
}
  /* Ensure dropdown shows all category options properly */
.category-dropdown .select2-results__option {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal !important; /* Ensures long text wraps */
}

/* Prevent selected options from being hidden */
.category-dropdown .select2-container--default .select2-results__option[aria-selected="true"] {
    display: block !important;
}

/* Fix dropdown width */
.category-dropdown .select2-dropdown {
    width: auto !important;
    min-width: 100% !important;
}

/* Fix issue where selected category values do not show in input */
.category-dropdown .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #007bff !important;
    color: white !important;
    border-radius: 5px !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
}

/* Ensure multiple category selections remain visible */
.category-dropdown .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

/* Ensure the category dropdown doesn’t collapse */
.category-dropdown .select2-container--default .select2-selection--multiple {
    min-height: 40px !important;
}

