/**
 * Tags Input Component Styles
 * Google-like inline tags within input field
 */

/* Main container that looks like an input field */
.tags-input-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    min-height: 42px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    cursor: text;
    transition: border-color 0.2s;
}

.tags-input-field:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-color: #3b82f6;
}

.tags-input-field.border-error {
    border-color: #ef4444;
}

/* Inline tags display */
.tags-inline-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

/* Individual tag items (inline) */
.tag-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #e5e7eb;
    color: #1f2937;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tag-text {
    user-select: none;
}

/* Remove button (inline) */
.tag-remove-inline {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    margin-left: 0.125rem;
    font-size: 1.125rem;
    line-height: 1;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 0.125rem;
    transition: all 0.15s;
}

.tag-remove-inline:hover {
    background-color: #d1d5db;
    color: #1f2937;
}

/* Inline input (grows with content) */
.tag-input-inline {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    padding: 0.125rem 0.25rem;
    font-size: 0.875rem;
    background: transparent;
}

.tag-input-inline::placeholder {
    color: #9ca3af;
}
