/* ===== Tag Input Component ===== */

.tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    padding: 6px 10px;
    cursor: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 44px;
    gap: 6px;
    box-sizing: border-box;
}

.tag-input-wrapper:focus-within {
    border-color: var(--primary-color, #081080);
    box-shadow: 0 0 0 3px rgba(8, 16, 128, 0.1);
}

.tag-input-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}

/* Individual chip / tag */
.tag-input-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #eef0ff;
    color: var(--primary-color, #081080);
    border: 1px solid #c7ccf0;
    border-radius: 4px;
    padding: 4px 8px 4px 10px;
    font-size: 0.84rem;
    font-weight: 500;
    font-family: var(--font-body, 'Inter', sans-serif);
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-input-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 0 2px;
    cursor: pointer;
    border-radius: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.tag-input-chip-remove svg {
    stroke: var(--primary-color, #081080);
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.tag-input-chip-remove:hover {
    background-color: rgba(8, 16, 128, 0.1);
}

.tag-input-chip-remove:hover svg {
    opacity: 1;
}

/* The inline typing input */
.tag-input-typing {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.92rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--text-main, #1f2937);
    padding: 4px 0;
    flex: 1;
    min-width: 120px;
}

.tag-input-typing::placeholder {
    color: #b0b8c4;
}
