.tags-input-wrapper {
    position: relative;
}

.tags-input-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    background-color: #fff;
    cursor: text;


    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tags-input-field:focus-within {
    border-color: #5d87ff;
    box-shadow: 0 0 0 0.2rem rgba(93, 135, 255, 0.25);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #5d87ff 0%, #4570ea 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
    animation: tagSlideIn 0.2s ease-out;
    box-shadow: 0 1px 3px rgba(93, 135, 255, 0.3);
    white-space: nowrap;
}

.tag-item:hover {
    background: linear-gradient(135deg, #4570ea 0%, #3c63d4 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(93, 135, 255, 0.4);
    transition: all 0.2s ease;
}

.tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tags-text-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    padding: 4px 0;
    font-size: 14px;
}

.tags-text-input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.tags-input-field:empty .tags-text-input::placeholder {
    opacity: 1;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tag-item.removing {
    animation: tagSlideOut 0.2s ease-in forwards;
}

@keyframes tagSlideOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}