/* ==============================================================
   TOM SELECT PREMIUM DARK THEME
   Custom overrides for the Tom Select library
   ============================================================== */

.ts-control {
    background: var(--glass-bg, rgba(var(--black-rgb),0.25)) !important;
    border-color: var(--border) !important;
    color: var(--white, #fff) !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    font-family: inherit !important;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.ts-dropdown {
    background: var(--bg-surface, #1e1e1e) !important;
    border: 1px solid var(--border) !important;
    color: var(--white, #fff) !important;
    border-radius: 12px !important;
    margin-top: 5px !important;
    box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.5) !important;
    z-index: 2000 !important;
}

.ts-dropdown .active {
    background: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
}

.ts-dropdown .option {
    padding: 12px 15px !important;
    color: var(--white, #fff) !important;
    transition: 0.2s;
}

.ts-control input {
    color: var(--white) !important;
}

/* Remove Button - Extraordinary Clean */
.ts-wrapper .plugin-remove_button .remove {
    border-left: none !important;
    padding: 0 !important;
    margin-left: 8px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: rgba(var(--white-rgb), 0.05) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    font-size: 0 !important;
    color: transparent !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ts-wrapper .plugin-remove_button .remove::before {
    content: '' !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") no-repeat center !important;
    background-color: var(--text-muted) !important;
    width: 10px !important;
    height: 10px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    visibility: visible !important;
}

.ts-wrapper .plugin-remove_button .remove:hover {
    background: var(--danger) !important;
    transform: scale(1.1) rotate(90deg);
}

.ts-wrapper .plugin-remove_button .remove:hover::before {
    background-color: var(--white) !important;
}

.ts-wrapper .plugin-remove_button .item {
    padding-right: 5px !important;
}

.ts-wrapper.single .ts-control .item {
    display: flex;
    align-items: center;
    width: 100%;
}

.ts-wrapper.single .plugin-remove_button .remove {
    position: absolute;
    right: 35px;
    top: 0;
    border: none !important;
    color: var(--text-muted) !important;
}
