/*
Version: 3.5.3 Timestamp: Wed Aug 19 21:55:46 EDT 2015
NulledBB Theme Compatible Version
*/
.select2-container {
    margin: 0;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.select2-container,
.select2-drop,
.select2-search,
.select2-search input {
  /*
    Force border-box so that % widths fit the parent
    container without overlap because of margin/padding.
    More Info : http://www.quirksmode.org/css/box.html
  */
  -webkit-box-sizing: border-box; /* webkit */
     -moz-box-sizing: border-box; /* firefox */
          box-sizing: border-box; /* css3 */
}

.select2-container .select2-choice {
    display: block;
    height: 40px; /* NulledBB: Increased height for better consistency */
    padding: 0 0 0 12px; /* NulledBB: Increased padding */
    overflow: hidden;
    position: relative;

    border: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary color and thicker border */
    white-space: nowrap;
    line-height: 36px; /* NulledBB: Adjusted for new height */
    color: #9da5b3; /* NulledBB: Using secondary color */
    text-decoration: none;

    border-radius: 0.25rem; /* NulledBB: Using --rounded value */

    background-clip: padding-box;

    -webkit-touch-callout: none;
      -webkit-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;

    background-color: #212735; /* NulledBB: Using --bg-secondary */
    background-image: none; /* NulledBB: Removed gradients for flat design */
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; /* NulledBB: Using --fonts */
    font-size: 14px; /* NulledBB: Base font size */
}

/* NulledBB: Focus state */
.select2-container.select2-container-active .select2-choice,
.select2-container.select2-container-active .select2-choices {
    border: 2px solid #3b84df; /* NulledBB: Using --bg-primary for focus */
    outline: none;
    -webkit-box-shadow: none;
            box-shadow: none; /* NulledBB: Removed shadow for cleaner look */
}

html[dir="rtl"] .select2-container .select2-choice {
    padding: 0 12px 0 0;
}

.select2-container.select2-drop-above .select2-choice {
    border-bottom-color: #262f3f; /* NulledBB: Using --bg-tertiary */
    border-radius: 0 0 0.25rem 0.25rem; /* NulledBB: Using --rounded */
    background-image: none; /* NulledBB: Removed gradients */
    background-color: #212735; /* NulledBB: Using --bg-secondary */
}

.select2-container.select2-allowclear .select2-choice .select2-chosen {
    margin-right: 42px;
}

.select2-container .select2-choice > .select2-chosen {
    margin-right: 26px;
    display: block;
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
    float: none;
    width: auto;
    
    /* MyBB modification start - Search container min-width */
    min-width: 120px;
    /* MyBB modification end */
}

html[dir="rtl"] .select2-container .select2-choice > .select2-chosen {
    margin-left: 26px;
    margin-right: 0;
}

.select2-container .select2-choice abbr {
    display: none;
    width: 12px;
    height: 12px;
    position: absolute;
    right: 24px;
    top: 14px; /* NulledBB: Adjusted for new height */

    font-size: 1px;
    text-decoration: none;

    border: 0;
    background: url('select2.png') right top no-repeat;
    cursor: pointer;
    outline: 0;
}

.select2-container.select2-allowclear .select2-choice abbr {
    display: inline-block;
}

.select2-container .select2-choice abbr:hover {
    background-position: right -11px;
    cursor: pointer;
}

.select2-drop-mask {
    border: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100%;
    min-width: 100%;
    height: auto;
    width: auto;
    opacity: 0;
    z-index: 9998;
    /* styles required for IE to work */
    background-color: rgba(0, 0, 0, 0.25); /* NulledBB: Dark overlay */
    filter: alpha(opacity=0);
}

.select2-drop {
    width: 100%;
    margin-top: -2px; /* NulledBB: Adjusted for thicker border */
    position: absolute;
    z-index: 9999;
    top: 100%;

    background: #212735; /* NulledBB: Using --bg-secondary */
    color: #9da5b3; /* NulledBB: Using secondary text color */
    border: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary and thicker border */
    border-top: 0;

    border-radius: 0 0 0.25rem 0.25rem; /* NulledBB: Using --rounded */

    -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* NulledBB: Using consistent shadow */
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.select2-drop.select2-drop-above {
    margin-top: 2px; /* NulledBB: Adjusted for thicker border */
    border-top: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary */
    border-bottom: 0;

    border-radius: 0.25rem 0.25rem 0 0; /* NulledBB: Using --rounded */

    -webkit-box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
            box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

.select2-drop-active {
    border: 2px solid #3b84df; /* NulledBB: Using --bg-primary */
    border-top: none;
}

.select2-drop.select2-drop-above.select2-drop-active {
    border-top: 2px solid #3b84df; /* NulledBB: Using --bg-primary */
}

.select2-drop-auto-width {
    border-top: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary */
    width: auto;
}

.select2-container .select2-choice .select2-arrow {
    display: inline-block;
    width: 20px; /* NulledBB: Slightly wider */
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;

    border-left: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary and thicker border */
    border-radius: 0 0.25rem 0.25rem 0; /* NulledBB: Using --rounded */

    background-clip: padding-box;

    background: #2e394c; /* NulledBB: Using --bg-quaternary */
    background-image: none; /* NulledBB: Removed gradients */
}

html[dir="rtl"] .select2-container .select2-choice .select2-arrow {
    left: 0;
    right: auto;

    border-left: none;
    border-right: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary */
    border-radius: 0.25rem 0 0 0.25rem; /* NulledBB: Using --rounded */
}

.select2-container .select2-choice .select2-arrow b {
    display: block;
    width: 100%;
    height: 100%;
    background: url('select2.png') no-repeat 0 1px;
}

html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {
    background-position: 2px 1px;
}

.select2-search {
    display: inline-block;
    width: 100%;
    min-height: 26px;
    margin: 0;
    padding: 4px 4px 0 4px;

    position: relative;
    z-index: 10000;

    white-space: nowrap;
}

.select2-search input {
    width: 100%;
    height: auto !important;
    min-height: 30px; /* NulledBB: Increased height */
    padding: 8px 20px 8px 8px; /* NulledBB: Better padding */
    margin: 0;

    outline: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; /* NulledBB: Using --fonts */
    font-size: 14px; /* NulledBB: Base font size */

    border: 1px solid #2e394c; /* NulledBB: Using --bg-quaternary */
    border-radius: 0.25rem; /* NulledBB: Using --rounded */

    -webkit-box-shadow: none;
            box-shadow: none;

    background: #212735 url('select2.png') no-repeat 100% -22px; /* NulledBB: Using --bg-secondary for background */
    background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #212735), color-stop(0.99, #262f3f));
    background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #212735 85%, #262f3f 99%);
    background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #212735 85%, #262f3f 99%);
    background: url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #212735 85%, #262f3f 99%) 0 0;
    color: #9da5b3; /* NulledBB: Using secondary text color */
}

/* NulledBB: Search input focus state */
.select2-search input:focus {
    border-color: #3b84df; /* NulledBB: Using --bg-primary */
    background-color: #212735; /* NulledBB: Using --bg-secondary */
}

/* NulledBB: Placeholder styling */
.select2-search input::-webkit-input-placeholder {
    color: #778296; /* NulledBB: Using --color-secondary */
    opacity: 1;
}

.select2-search input::-moz-placeholder {
    color: #778296; /* NulledBB: Using --color-secondary */
    opacity: 1;
}

.select2-search input:-ms-input-placeholder {
    color: #778296; /* NulledBB: Using --color-secondary */
    opacity: 1;
}

.select2-search input::-ms-input-placeholder {
    color: #778296; /* NulledBB: Using --color-secondary */
    opacity: 1;
}

.select2-search input::placeholder {
    color: #778296; /* NulledBB: Using --color-secondary */
    opacity: 1;
}

html[dir="rtl"] .select2-search input {
    padding: 8px 8px 8px 20px;

    background: #212735 url('select2.png') no-repeat -37px -22px;
    background: url('select2.png') no-repeat -37px -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #212735), color-stop(0.99, #262f3f));
    background: url('select2.png') no-repeat -37px -22px, -webkit-linear-gradient(center bottom, #212735 85%, #262f3f 99%);
    background: url('select2.png') no-repeat -37px -22px, -moz-linear-gradient(center bottom, #212735 85%, #262f3f 99%);
    background: url('select2.png') no-repeat -37px -22px, linear-gradient(to bottom, #212735 85%, #262f3f 99%) 0 0;
}

.select2-search input.select2-active {
    background: #212735 url('select2-spinner.gif') no-repeat 100%;
    background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #212735), color-stop(0.99, #262f3f));
    background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #212735 85%, #262f3f 99%);
    background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #212735 85%, #262f3f 99%);
    background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #212735 85%, #262f3f 99%) 0 0;
}

.select2-dropdown-open .select2-choice {
    border-bottom-color: transparent;
    -webkit-box-shadow: none;
            box-shadow: none; /* NulledBB: Removed inset shadow */

    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    background-color: #212735; /* NulledBB: Using --bg-secondary */
    background-image: none; /* NulledBB: Removed gradients */
}

.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open.select2-drop-above .select2-choices {
    border: 2px solid #3b84df; /* NulledBB: Using --bg-primary */
    border-top-color: transparent;
    background-image: none; /* NulledBB: Removed gradients */
    background-color: #212735; /* NulledBB: Using --bg-secondary */
}

.select2-dropdown-open .select2-choice .select2-arrow {
    background: transparent;
    border-left: none;
    filter: none;
}
html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {
    border-right: none;
}

.select2-dropdown-open .select2-choice .select2-arrow b {
    background-position: -18px 1px;
}

html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow b {
    background-position: -16px 1px;
}

.select2-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* results */
.select2-results {
    max-height: 200px;
    padding: 0 0 0 4px;
    margin: 4px 4px 4px 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html[dir="rtl"] .select2-results {
    padding: 0 4px 0 0;
    margin: 4px 0 4px 4px;
}

.select2-results ul.select2-result-sub {
    margin: 0;
    padding-left: 0;
}

.select2-results li {
    list-style: none;
    display: list-item;
    background-image: none;
}

.select2-results li.select2-result-with-children > .select2-result-label {
    font-weight: 500; /* NulledBB: Using --font-bold value */
}

.select2-results .select2-result-label {
    padding: 8px 12px; /* NulledBB: Better padding */
    margin: 0;
    cursor: pointer;

    min-height: 1em;

    -webkit-touch-callout: none;
      -webkit-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;

    color: #9da5b3; /* NulledBB: Using secondary text color */
    border-radius: 0.25rem; /* NulledBB: Adding rounded corners */
    margin: 2px 4px; /* NulledBB: Adding margin for spacing */
}

/* NulledBB: Hover state for results */
.select2-results .select2-result-label:hover {
    background-color: #2e394c; /* NulledBB: Using --bg-quaternary */
    color: #cbd3df; /* NulledBB: Lighter text on hover */
}

.select2-results-dept-1 .select2-result-label { padding-left: 20px }
.select2-results-dept-2 .select2-result-label { padding-left: 40px }
.select2-results-dept-3 .select2-result-label { padding-left: 60px }
.select2-results-dept-4 .select2-result-label { padding-left: 80px }
.select2-results-dept-5 .select2-result-label { padding-left: 100px }
.select2-results-dept-6 .select2-result-label { padding-left: 110px }
.select2-results-dept-7 .select2-result-label { padding-left: 120px }

.select2-results .select2-highlighted {
    background: #3b84df; /* NulledBB: Using --bg-primary */
    color: rgba(255, 255, 255, 0.85); /* NulledBB: High contrast white text */
}

.select2-results li em {
    background: #43a047; /* NulledBB: Using --bg-success for highlights */
    font-style: normal;
    color: rgba(255, 255, 255, 0.85); /* NulledBB: White text on success background */
    padding: 1px 3px; /* NulledBB: Adding padding */
    border-radius: 2px; /* NulledBB: Small border radius */
}

.select2-results .select2-highlighted em {
    background: rgba(255, 255, 255, 0.25); /* NulledBB: Semi-transparent white */
    color: rgba(255, 255, 255, 0.85); /* NulledBB: White text */
}

.select2-results .select2-highlighted ul {
    background: #212735; /* NulledBB: Using --bg-secondary */
    color: #9da5b3; /* NulledBB: Using secondary text color */
}

.select2-results .select2-no-results,
.select2-results .select2-searching,
.select2-results .select2-ajax-error,
.select2-results .select2-selection-limit {
    background: #2e394c; /* NulledBB: Using --bg-quaternary */
    display: list-item;
    padding-left: 12px; /* NulledBB: Better padding */
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #778296; /* NulledBB: Using --color-secondary */
    font-style: italic; /* NulledBB: Making status messages italic */
}

/*
disabled look for disabled choices in the results dropdown
*/
.select2-results .select2-disabled.select2-highlighted {
    color: #778296; /* NulledBB: Using --color-secondary */
    background: #2e394c; /* NulledBB: Using --bg-quaternary */
    display: list-item;
    cursor: default;
}
.select2-results .select2-disabled {
  background: #2e394c; /* NulledBB: Using --bg-quaternary */
  display: list-item;
  cursor: default;
  color: #778296; /* NulledBB: Using --color-secondary */
}

.select2-results .select2-selected {
    display: none;
}

.select2-more-results.select2-active {
    background: #2e394c url('select2-spinner.gif') no-repeat 100%; /* NulledBB: Using --bg-quaternary */
}

.select2-results .select2-ajax-error {
    background: rgba(220, 53, 69, 0.15); /* NulledBB: Using --bg-danger with transparency */
    color: #dc3545; /* NulledBB: Using --color-danger */
}

.select2-more-results {
    background: #2e394c; /* NulledBB: Using --bg-quaternary */
    display: list-item;
}

/* disabled styles */

.select2-container.select2-container-disabled .select2-choice {
    background-color: #161a21; /* NulledBB: Using body background color */
    background-image: none;
    border: 2px solid #778296; /* NulledBB: Using --color-secondary */
    cursor: default;
    color: #778296; /* NulledBB: Using --color-secondary */
}

.select2-container.select2-container-disabled .select2-choice .select2-arrow {
    background-color: #161a21; /* NulledBB: Using body background color */
    background-image: none;
    border-left: 0;
}

.select2-container.select2-container-disabled .select2-choice abbr {
    display: none;
}


/* multiselect */

.select2-container-multi .select2-choices {
    height: auto !important;
    height: 1%;
    margin: 0;
    padding: 0 5px 0 0;
    position: relative;

    border: 2px solid #262f3f; /* NulledBB: Using --bg-tertiary and thicker border */
    cursor: text;
    overflow: hidden;

    background-color: #212735; /* NulledBB: Using --bg-secondary */
    background-image: none; /* NulledBB: Removed gradients */
    border-radius: 0.25rem; /* NulledBB: Using --rounded */
}

html[dir="rtl"] .select2-container-multi .select2-choices {
    padding: 0 0 0 5px;
}

.select2-locked {
  padding: 3px 5px 3px 5px !important;
}

.select2-container-multi .select2-choices {
    min-height: 40px; /* NulledBB: Consistent with single select */
}

.select2-container-multi.select2-container-active .select2-choices {
    border: 2px solid #3b84df; /* NulledBB: Using --bg-primary */
    outline: none;
    -webkit-box-shadow: none;
            box-shadow: none; /* NulledBB: Removed shadow */
}
.select2-container-multi .select2-choices li {
    float: left;
    list-style: none;
}
html[dir="rtl"] .select2-container-multi .select2-choices li
{
    float: right;
}
.select2-container-multi .select2-choices .select2-search-field {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.select2-container-multi .select2-choices .select2-search-field input {
    padding: 8px; /* NulledBB: Better padding */
    margin: 1px 0;

    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; /* NulledBB: Using --fonts */
    font-size: 14px; /* NulledBB: Base font size */
    color: #9da5b3; /* NulledBB: Using secondary text color */
    outline: 0;
    border: 0;
    -webkit-box-shadow: none;
            box-shadow: none;
    background: transparent !important;
}

.select2-container-multi .select2-choices .select2-search-field input.select2-active {
    background: #212735 url('select2-spinner.gif') no-repeat 100% !important; /* NulledBB: Using --bg-secondary */
}

.select2-default {
    color: #778296 !important; /* NulledBB: Using --color-secondary */
}

.select2-container-multi .select2-choices .select2-search-choice {
    padding: 6px 8px 6px 20px; /* NulledBB: Better padding */
    margin: 4px 0 4px 6px; /* NulledBB: Better margins */
    position: relative;

    line-height: 18px; /* NulledBB: Better line height */
    color: rgba(255, 255, 255, 0.85); /* NulledBB: High contrast text */
    cursor: default;
    border: 1px solid #3b84df; /* NulledBB: Using --bg-primary */

    border-radius: 0.25rem; /* NulledBB: Using --rounded */

    -webkit-box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* NulledBB: Subtle shadow */
            box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    background-clip: padding-box;

    -webkit-touch-callout: none;
      -webkit-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;

    background-color: #3b84df; /* NulledBB: Using --bg-primary */
    background-image: none; /* NulledBB: Removed gradients */
}
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
{
    margin: 4px 6px 4px 0; /* NulledBB: Better margins for RTL */
    padding: 6px 20px 6px 8px; /* NulledBB: Better padding for RTL */
}
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
    cursor: default;
}
.select2-container-multi .select2-choices .select2-search-choice-focus {
    background: #2a6bbf; /* NulledBB: Darker shade of primary for focus */
}

.select2-search-choice-close {
    display: block;
    width: 12px;
    height: 13px;
    position: absolute;
    right: 6px; /* NulledBB: Better positioning */
    top: 8px; /* NulledBB: Better positioning */

    font-size: 1px;
    outline: none;
    background: url('select2.png') right top no-repeat;
}
html[dir="rtl"] .select2-search-choice-close {
    right: auto;
    left: 6px; /* NulledBB: Better positioning for RTL */
}

.select2-container-multi .select2-search-choice-close {
    left: 6px; /* NulledBB: Better positioning */
}

html[dir="rtl"] .select2-container-multi .select2-search-choice-close {
    left: auto;
    right: 6px; /* NulledBB: Better positioning for RTL */
}

.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  background-position: right -11px;
}
.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
    background-position: right -11px;
}

/* disabled styles */
.select2-container-multi.select2-container-disabled .select2-choices {
    background-color: #161a21; /* NulledBB: Using body background color */
    background-image: none;
    border: 2px solid #778296; /* NulledBB: Using --color-secondary */
    cursor: default;
}

.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
    padding: 6px 8px 6px 8px; /* NulledBB: Consistent padding for disabled state */
    border: 1px solid #778296; /* NulledBB: Using --color-secondary */
    background-image: none;
    background-color: #161a21; /* NulledBB: Using body background color */
    color: #778296; /* NulledBB: Using --color-secondary */
}

.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {    
    display: none;
    background: none;
}
/* end multiselect */


.select2-result-selectable .select2-match,
.select2-result-unselectable .select2-match {
    text-decoration: underline;
}

.select2-offscreen, .select2-offscreen:focus {
    clip: rect(0 0 0 0) !important;
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    outline: 0 !important;
    left: 0px !important;
    top: 0px !important;
}

.select2-display-none {
    display: none;
}

.select2-measure-scrollbar {
    position: absolute;
    top: -10000px;
    left: -10000px;
    width: 100px;
    height: 100px;
    overflow: scroll;
}

/* NulledBB: Custom scrollbar styling for dropdown */
.select2-results::-webkit-scrollbar {
    width: 6px;
}

.select2-results::-webkit-scrollbar-track {
    background: #212735; /* NulledBB: Using --bg-secondary */
    border-radius: 3px;
}

.select2-results::-webkit-scrollbar-thumb {
    background: #2e394c; /* NulledBB: Using --bg-quaternary */
    border-radius: 3px;
}

.select2-results::-webkit-scrollbar-thumb:hover {
    background: #3b84df; /* NulledBB: Using --bg-primary on hover */
}

/* NulledBB: Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .select2-container .select2-choice {
        background-color: #212735; /* NulledBB: Ensure dark background */
        color: #9da5b3; /* NulledBB: Ensure light text */
    }
    
    .select2-drop {
        background: #212735; /* NulledBB: Dark dropdown background */
    }
    
    .select2-search input {
        background-color: #212735; /* NulledBB: Dark input background */
        color: #9da5b3; /* NulledBB: Light input text */
    }
}

/* NulledBB: Loading state improvements */
.select2-searching {
    background-image: url('data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkECQoAAAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQJCgAAACwAAAAAEAAQAAADMgi63P7wjRLgXeMmTFNTNW5wdU5SXSsSwGu+iw6UfI8ePa5f7AdjCgBcfHT9OQcNDwAAIf4xAAbgGn7xMjmJQf+gKQGCQFGHFQKCFQUFHlYAGFuKBAkC2C4BAvkCHgGBNvwKTwCEIKAD3l8BDQI7vwQDAn8GwkGWDANSZFpgFH4BAhcFDBMNAhsFDQoqD');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* NulledBB: Animation for opening dropdown */
.select2-drop {
    -webkit-animation: select2-fade-in 0.15s ease-out;
    animation: select2-fade-in 0.15s ease-out;
}

@-webkit-keyframes select2-fade-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes select2-fade-in {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* NulledBB: Better focus indicators for accessibility */
.select2-container .select2-choice:focus,
.select2-container.select2-container-active .select2-choice {
    border-color: #3b84df; /* NulledBB: Using --bg-primary */
    outline: 2px solid rgba(59, 132, 223, 0.2); /* NulledBB: Subtle outline */
    outline-offset: 2px;
}

/* NulledBB: Responsive improvements */
@media (max-width: 768px) {
    .select2-container .select2-choice {
        height: 44px; /* NulledBB: Better touch target on mobile */
        line-height: 40px;
        font-size: 16px; /* NulledBB: Prevent zoom on iOS */
    }
    
    .select2-search input {
        font-size: 16px; /* NulledBB: Prevent zoom on iOS */
        min-height: 44px; /* NulledBB: Better touch target */
    }
    
    .select2-results .select2-result-label {
        padding: 12px 16px; /* NulledBB: Better touch targets */
        font-size: 16px; /* NulledBB: Better readability on mobile */
    }
}

/* Retina-ize icons */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx)  {
    .select2-search input,
    .select2-search-choice-close,
    .select2-container .select2-choice abbr,
    .select2-container .select2-choice .select2-arrow b {
        background-image: url('select2x2.png') !important;
        background-repeat: no-repeat !important;
        background-size: 60px 40px !important;
    }

    .select2-search input {
        background-position: 100% -21px !important;
    }
}

/* NulledBB: Integration with existing form styles */
.form-group .select2-container {
    width: 100% !important;
}

.form-group .select2-container .select2-choice {
    height: 40px; /* NulledBB: Match form-control height */
    border-color: #262f3f; /* NulledBB: Match form-control border */
}

.form-group .select2-container.select2-container-active .select2-choice {
    border-color: #3b84df; /* NulledBB: Match form-control:focus border */
}

/* NulledBB: Error state styling */
.select2-container.error .select2-choice,
.select2-container.error .select2-choices {
    border-color: #dc3545 !important; /* NulledBB: Using --bg-danger */
}

.select2-container.error .select2-choice:focus,
.select2-container.error .select2-choices:focus {
    outline: 2px solid rgba(220, 53, 69, 0.2); /* NulledBB: Error focus outline */
}

/* NulledBB: Success state styling */
.select2-container.valid .select2-choice,
.select2-container.valid .select2-choices {
    border-color: #43a047 !important; /* NulledBB: Using --bg-success */
}

.select2-container.valid .select2-choice:focus,
.select2-container.valid .select2-choices:focus {
    outline: 2px solid rgba(67, 160, 71, 0.2); /* NulledBB: Success focus outline */
}