/* Estilos para o Input de Tags */
.tag-input-wrapper {
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-radius: 8px;
    padding: 0.5rem;
    background: var(--theme-input-bg, #fff);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 45px;
    align-items: center;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-input-wrapper:focus-within {
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.tag-chip {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color, #6366f1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tag-chip i {
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tag-chip i:hover {
    opacity: 1;
}

.tag-input-field {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
    background: transparent;
    color: var(--theme-text-primary, #1f2937);
    font-size: 0.9rem;
    padding: 0.25rem;
}

.tag-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--theme-card-bg, #fff);
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
}

.tag-suggestions.active {
    display: block;
}

.tag-suggestion-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--theme-text-primary, #1f2937);
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-suggestion-item:hover,
.tag-suggestion-item.selected {
    background: var(--theme-bg-secondary, #f3f4f6);
    color: var(--primary-color, #6366f1);
}

.tag-suggestion-item .tag-count {
    font-size: 0.75rem;
    color: var(--theme-text-muted, #9ca3af);
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Dark mode adjustments */
[data-theme="dark"] .tag-input-wrapper {
    border-color: var(--theme-border-color, #374151);
    background: var(--theme-input-bg, #1f2937);
}

[data-theme="dark"] .tag-suggestions {
    background: var(--theme-card-bg, #1f2937);
    border-color: var(--theme-border-color, #374151);
}

[data-theme="dark"] .tag-suggestion-item:hover,
[data-theme="dark"] .tag-suggestion-item.selected {
    background: rgba(255, 255, 255, 0.05);
}
