/* OrbitFlow Reusable Components CSS */
/* assets/css/components.css  -  Reusable Components Styles
   Covers: buttons, inputs, selects, modals, cards, alerts,
   tooltips, dropdowns, and other reusable UI elements. */
/* Label Multiselect Component (Dropdown Modes) */
.of-multiselect-container {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.of-native-select {
    display: none !important;
}

.of-select-adapter {
    width: 100%;
}

.of-multiselect-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: var(--control-height, 34px);
    padding: 0 10px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: text;
    align-items: center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.of-multiselect-input-wrapper.focus {
    border-color: var(--primary);
}

.of-multiselect-search {
    flex: 1;
    min-width: 60px;
    min-height: calc(var(--control-height, 34px) - 2px);
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    padding: 0;
    margin: 0;
}

.of-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.of-multiselect-dropdown.show {
    display: block;
}

.of-multiselect-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: background 0.1s;
}

.of-multiselect-option:hover {
    background: var(--bg-hover);
}

.of-multiselect-option.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.of-multiselect-option.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Pills UI */
.of-multiselect-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    cursor: default;
}

.of-multiselect-pill-remove {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.of-multiselect-pill-remove:hover {
    opacity: 1;
}

.of-multiselect-no-results {
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Inline Pill Display Modes (No Dropdown) */
.of-inline-pills {
    display: flex;
    gap: 8px;
}

/* 1. Inline Pills (wrap) */
.of-inline-pills.wrap {
    flex-wrap: wrap;
}

/* 2. Horizontal Pills (scroll) */
.of-inline-pills.scroll-h {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

/* 3. Vertical Pills (scroll) */
.of-inline-pills.scroll-v {
    flex-direction: column;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Interactive Pill Buttons (used in inline modes) */
.of-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    flex-shrink: 0;
}

.of-pill-btn:hover {
    filter: brightness(0.95);
}

.of-pill-btn.selected {
    color: #fff;
    border-color: transparent;
}
